flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Macro instruction counter |
Author |
|
Mike Gonta 31 Oct 2012, 23:22
rydemstorm wrote: I would like do it something like this: Code: use32 macro pushx arg { local ..override, ..count virtual at 0 push arg load ..override from 0 end virtual ..count=2 if ..override <> 66h ; no size override prefix - has to 32bit ..count=..count+2 end if add eax, ..count } pushx DWORD 0 ; add eax, 4 pushx WORD 0 ; add eax, 2 pushx DWORD [0] ; add eax, 4 pushx WORD [0] ; add eax, 2 pushx eax ; add eax, 4 pushx ax ; add eax, 2 Last edited by Mike Gonta on 17 Jul 2013, 09:58; edited 2 times in total |
|||
31 Oct 2012, 23:22 |
|
rydemstorm 01 Nov 2012, 19:04
Thanks. Work well for 16 or 32 bits, but, what changes need to do to work with 8 bits to.
push al ;add al,1 |
|||
01 Nov 2012, 19:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.