flat assembler
Message board for the users of flat assembler.

Index > Main > DATA[REG+ofs] syntax

Author
Thread Post new topic Reply to topic
avhohlov



Joined: 26 Jul 2004
Posts: 4
avhohlov 26 Jul 2004, 14:27
I try to port my compiler from TASM to FASM.
What FASM syntax of instruction

mov EAX, dword ptr DATA[REG+Offset] ;TASM

REG-register (EAX, ...)
Offset - value
DATA:
db DATA Size dup (?)
Post 26 Jul 2004, 14:27
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8268
Location: Kraków, Poland
Tomasz Grysztar 26 Jul 2004, 14:58
Code:
mov EAX,dword [DATA+REG+Offset]    

or
Code:
mov EAX,dword ptr DATA+REG+Offset    


For the second one please read this thread: http://board.flatassembler.net/topic.php?t=1621
Post 26 Jul 2004, 14:58
View user's profile Send private message Visit poster's website Reply with quote
avhohlov



Joined: 26 Jul 2004
Posts: 4
avhohlov 27 Jul 2004, 10:00
Thanks.
In first approach port are made
Post 27 Jul 2004, 10:00
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.