diff options
Diffstat (limited to 'cat.s')
-rw-r--r-- | cat.s | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ + global _start + section .text +_start: + mov rax, 1 + mov rdi, 1 + mov rsi, msg + mov rdx, msgSize + syscall + + mov rax, 60 + mov rdi, 0 + syscall + + section .data +msg: db "Hello, world!", 10 +msgSize: EQU $ - msg |