flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > previous instruction label |
Author |
|
Tommy 29 May 2004, 18:54
Seems to be a good idea if it's possible...
|
|||
29 May 2004, 18:54 |
|
comrade 29 May 2004, 19:05
Maybe there could other uses for it, but I cannot think of any.
|
|||
29 May 2004, 19:05 |
|
Tommy 29 May 2004, 19:37
A solution:
Code: macro showsize asm_code { local x x = $ asm_code display $ - x + 30h, 13, 10 } use32 showsize <movzx eax, al> |
|||
29 May 2004, 19:37 |
|
comrade 29 May 2004, 21:37
That works, but not as elegant as it would be with $B. Encapsulating instruction into showsize <> is extra work I was hoping to avoid.
|
|||
29 May 2004, 21:37 |
|
Tomasz Grysztar 30 May 2004, 01:30
Well, to avoid <> characters you can do it this way:
Code: macro showsize [asm_code] { common local x x = $ asm_code display $ - x + 30h, 13, 10 } showsize movzx eax, al And I'm sorry, there seems to be no simple way to add such feature as $B you suggested. |
|||
30 May 2004, 01:30 |
|
comrade 30 May 2004, 03:51
that's good enough, thanks
|
|||
30 May 2004, 03:51 |
|
Tommy 30 May 2004, 09:59
There I learned something new about FASM macro-technology... Thanks, Privalov!
|
|||
30 May 2004, 09:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.