%include "CONSTANTS.h" section .data endl: db `\n`,0 fmtString1: db `i = %2d\n`,0 fmtString2: db `\tj = %2d\n`,0 fmtString3: db `\t%d^%d = %10d\n`,0 section .bss section .text global main main: ;for(i = 2; i <= 5; ++i) ; for(j = 0; j <= 10; ++j) ; cout << i^j ; cout << endl ;r12 will be the first lcv ;r13 will be the second lcv ;r14 will be the current base to power mov r12, 2 loop1: cmp r12, 6 je done1 mov r14, 1 mov r13, 0 loop2: cmp r13, 10 je done2 mov rdi, fmtString3 mov rsi, r12 mov rdx, r13 mov rcx, r14 call CallPrintf mov rax, r14 mul r12 mov r14, rax inc r13 jmp loop2 done2: mov rdi, endl call CallPrintf inc r12 jmp loop1 done1: jmp Exit