diff options
Diffstat (limited to 'main.s')
| -rw-r--r-- | main.s | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -2,9 +2,17 @@ .globl _start _start: - sys write, $STDOUT, $msg, $len + movq %rsp, %rbp + + pushq $-1024 + pushq $-1024 + pushq $msg + pushq $fmt + call printf + sys exit, $0 .data -msg: .ascii "Hello, World!\n" -len = .-msg +fmt: .asciz "%s and %d and %u\n" +msg: .asciz "Hello, World" +bye: .asciz "bye!" |
