diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-12 00:23:50 +0300 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-12 00:23:50 +0300 |
| commit | 2d78510b9af6f70ec34d77f0e047c698bdf061a9 (patch) | |
| tree | f56f2c9d7c29952748d62aa99d6e8fdc76402ada /main.s | |
| parent | 1248eae0617555a4f13f7bbee9f120ad3d46c5f3 (diff) | |
draftng
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!" |
