macro's and arguments
Mischa Baars
mjbaars1977@gmail.com
Tue Oct 16 07:46:00 GMT 2012
Hi,
Who will be fixing this? Macro arguments without brackets are not
accepted by the assembler.
If I can be of any help, let me know.
Thanks,
Mischa.
-------------- next part --------------
.intel_syntax noprefix
.global function
.code64
.macro A arg1, arg2
mov ax, \arg1
mov bx, \arg2
.endm
.macro B
.set i, 0
.rept 4
// A i + i, i * i
A (i + i), (i * i)
.set i, i + 1
.endr
.endm
function:
B
More information about the Binutils
mailing list