flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > load dword error display.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1796
Roman 18 Apr 2023, 13:11
fasmw 1.73
Code:
virtual at 0
     defs::
      defs_txt db '%%a1'
                  dd 1.0,10,20,30
               db '%%b1'
                  dd 0,1,2,3
     defs_size:  
end virtual        

load  a dword from defs:%-1
      display a ;fasm error value out of range

    


Last edited by Roman on 18 Apr 2023, 14:04; edited 1 time in total
Post 18 Apr 2023, 13:11
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 18 Apr 2023, 13:34
You can only output bytes.
Code:
display 0x100 ; <--- error.    
Post 18 Apr 2023, 13:34
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1796
Roman 18 Apr 2023, 13:49
Code:
display "hello world!" ;work fine    


Trick
Code:
load  a dword from defs:%-1

load  b1 byte from defs:%-1
load  b2 byte from defs:%
load  b3 byte from defs:%+1
load  b4 byte from defs:%+2
      display b1, b2, b3, b4
    
Post 18 Apr 2023, 13:49
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.