flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tommy
Seems to be a good idea if it's possible...
![]() |
|||
![]() |
|
comrade
Maybe there could other uses for it, but I cannot think of any.
|
|||
![]() |
|
Tommy
A solution:
Code: macro showsize asm_code { local x x = $ asm_code display $ - x + 30h, 13, 10 } use32 showsize <movzx eax, al> |
|||
![]() |
|
comrade
That works, but not as elegant as it would be with $B. Encapsulating instruction into showsize <> is extra work I was hoping to avoid.
|
|||
![]() |
|
Tomasz Grysztar
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. |
|||
![]() |
|
comrade
that's good enough, thanks
![]() |
|||
![]() |
|
Tommy
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.