flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
Instead of "macro l21 [args]" use "macro l21 args&" construction.
|
|||
![]() |
|
Devel99
its impossible with nested IRP. The only thing you can do is just to unify L21 calling convention as L21 <<>>, <<>>, <<>>, ...
otherwise you'll lose information about each command boudaries Code: l21 <<inc ax>>, <<dec ax>> l21 <<inc ax>>, <<dec ax>>, <<int 3>>, <<movss xmm0,dword [esi]>>, <<mov ax, bx>>, <<mov cx, dx>>, <<cvtsi2ss xmm0,eax>> l21 <<mov ax, bx>>, <<mov cx, dx>> |
|||
![]() |
|
Devel99
Tomasz Grysztar
Amazing. That works perfectly!!! ![]() Code: macro l21 args& { irp cmd, args \{ cmd \} } l21 inc ax, dec ax l21 inc ax, dec ax, int 3, <movss xmm0,dword [esi]>, <mov ax, bx>, <mov cx, dx>, <cvtsi2ss xmm0,eax> |
|||
![]() |
|
l4m2
Seems that on some old fasm you should
Code: macro l21 [args] { common irp cmd, args \{ cmd \} } l21 inc ax, dec ax l21 <mov ax, bx>, <mov cx, dx> |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.