flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 20 Sep 2024, 20:12
I do this variant. Work.
Code: macro mA { macro mA r \{ pop r \} macro mA r \{ mov r,edx \} macro mA r \{ push r \} } macro mA r {pop r} ;1 macro mA r {mov r,edx} ;2 macro mA r {push r} ;3 ;in code mA eax purge mA mA eax purge mA mA eax purge mA mA mA ecx purge mA mA ecx purge mA mA ecx purge mA mA |
|||
![]() |
|
macomics 21 Sep 2024, 02:18
Code: macro SetMA { macro mA r \{ pop r \} macro mA r \{ mov r,edx \} macro mA r \{ push r \} } SetMA mA eax purge mA mA eax purge mA mA eax purge mA SetMA mA ecx purge mA mA ecx purge mA mA ecx purge mA Code: $ hexdump -C /tmp/test.bin 00000000 50 89 d0 58 51 89 d1 59 |P..XQ..Y| |
|||
![]() |
|
Roman 21 Sep 2024, 02:48
I do this variant too.
But this variant more useful and flexible. No needed do all times purge and SetmA. Code: macro mA1 r {pop r} macro mA2 r {mov r,edx} macro mA3 r {push r} ;in code rept 3 n:1 { reverse ;and support reversing ! mA#n edi call dword [edx+n*4-4] } mA2 eax |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.