flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Forcing addressing modes |
Author |
|
LocoDelAssembly 28 Nov 2005, 14:37
Well this is a continuation of http://board.flatassembler.net/topic.php?p=32657#32657
Now the feature request Can be added to FASM the ability to decide how addressing operands must be assembled? Example: When I do "lea eax, [eax+ dword 0]" I want FASM assemble the lea instruction with the offset too. At this time that instuction generates an error and if I do "lea eax, [eax+0]" FASM assembles "lea eax, [eax]". I know, assemblers must choice the shortest encoding but I want to override that using the size operator in the offset. FASM already support something similar when I do "add eax, dword 0", I just want to do the same with offsets. Regards, LocoDelAssembly |
|||
28 Nov 2005, 14:37 |
|
Tomasz Grysztar 28 Nov 2005, 14:42
I have just replied there before seeing this post.
Note that it is documented in section 1.2.6, even though a bit curtly . |
|||
28 Nov 2005, 14:42 |
|
Tomasz Grysztar 28 Nov 2005, 20:28
This is actually the thing that was discussed here: http://board.flatassembler.net/topic.php?t=3866
Some of the first fasm versions allowed "byte" in all such places, but then I changed my mind. I explained there, why. |
|||
28 Nov 2005, 20:28 |
|
LocoDelAssembly 28 Nov 2005, 22:09
Aaaaah, I know now why this topic sounds familear to me. Well I'm not so sure that this is a good desing but I'm not a assembly guru so I will trust your desing is fine.
Anyway, what I'm wanting can be achieved using macros and match directive, no? Thanks for your answers!! |
|||
28 Nov 2005, 22:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.