flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Bug in org directive

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 311
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
Code:
macro Prn Value
{
local ..Bits,..D
..Bits = 32
    repeat ..Bits/4
        ..D = '0' + Value shr (..Bits-%*4) and 0Fh
        if ..D > '9'
            ..D = ..D + 'A'-'9'-1
        end if
        display ..D
    end repeat
}

        org     0xFFC40000
        Prn     $ ; why equals 0xFFC40001

    

_________________
smaller is better
Post 27 Sep 2012, 06:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Code:
flat assembler  version 1.70.03  (1652848 kilobytes memory)
FFC40000
1 passes, 0 bytes.    
Code:
flat assembler  version 1.71.02  (1651297 kilobytes memory)
FFC40001
1 passes, 0 bytes.    
Post 27 Sep 2012, 06:34
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
And some more:
Code:
org 0x7FC40000
dd $    
Code:
flat assembler  version 1.71.02  (1652673 kilobytes memory)
x.asm [2]:
dd $
error: value out of range.    
Post 27 Sep 2012, 06:40
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
A critical typo in a new "org" handler code. Smile Thank you for the report.
Post 27 Sep 2012, 08:43
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.