.global main main: call getchar mov %rax, %rsi mov $format, %rdi xor %rax, %rax call printf ret format: .asciz "%d\n"