flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > double < and > |
Author |
|
Tomasz Grysztar 09 Dec 2015, 14:41
Instead of "macro l21 [args]" use "macro l21 args&" construction.
|
|||
09 Dec 2015, 14:41 |
|
Devel99 09 Dec 2015, 15:00
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>> |
|||
09 Dec 2015, 15:00 |
|
Devel99 09 Dec 2015, 15:04
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> |
|||
09 Dec 2015, 15:04 |
|
l4m2 17 Apr 2016, 15:17
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> |
|||
17 Apr 2016, 15:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.