flat assembler
Message board for the users of flat assembler.

Index > Main > lea [reg32+reg32+imm]

Author
Thread Post new topic Reply to topic
zhak



Joined: 12 Apr 2005
Posts: 490
Location: Belarus
zhak
Is it possible to force fasm to generate long opcodes for such instructions with 32bit immediate? For example I have instruction
Code:
lea eax, [eax+ecx+(label1-label2)    
where label1-label2 = 5.
fasm will generate 8D440805 but I need 8D840800000005 to be generated.
How should I do this? simple 'dword' attribute doesn't work. Thanks
Post 01 May 2006, 20:01
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I'm a little surprised but "lea eax, [dword eax+ecx+0]" generates a 9 byte encoding Surprised

Tomasz, is this new?

[edit]No, it is not new... http://board.flatassembler.net/topic.php?p=32660#32660

PS: 9 bytes encoding in use16 mode of course[/edit]
Post 01 May 2006, 22:10
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-2020, Tomasz Grysztar.

Powered by rwasa.