Hi All,
Who can take a first look at this in the morning?
Thanks,
Mischa.
function.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <function>:
0: c3 ret
function.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <function>:
0: 66 bb 00 00 mov bx,0x0
4: 66 bb 00 00 mov bx,0x0
8: 66 bb 01 00 mov bx,0x1
c: 66 bb 00 00 mov bx,0x0
10: 66 bb 01 00 mov bx,0x1
14: 66 bb 02 00 mov bx,0x2
18: c3 ret
.intel_syntax noprefix
.global function
.code64
.macro A arg1
.set i, 0
.rept \arg1
mov ax, i
.set i, i + 1
.endr
.endm
.macro B arg1
.set j, 0
.rept \arg1
mov bx, j
.set j, j + 1
.endr
.endm
.macro C
.set i, 0
.rept 4
// A i
B i
.set i, i + 1
.endr
.endm
function:
C
ret