1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
.include "sys.s" .globl _start _start: movq %rsp, %rbp pushq $-1024 pushq $-1024 pushq $msg pushq $fmt call printf sys exit, $0 .data fmt: .asciz "%s and %d and %u\n" msg: .asciz "Hello, World" bye: .asciz "bye!"