Skip to content

Instantly share code, notes, and snippets.

@ema
Created December 2, 2013 20:15
Show Gist options
  • Save ema/7758008 to your computer and use it in GitHub Desktop.
Save ema/7758008 to your computer and use it in GitHub Desktop.
.LC0:
.string "Iteration %ld\n"
.text
.globl main
.type main, @function
main:
xor %rbx, %rbx
loop:
# Call printf
mov %rbx, %rsi
movl $.LC0, %edi
movl $0, %eax
call printf
add $1, %rbx
cmp $10, %rbx
jnz loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment