diff options
author | turret <turret@duck.com> | 2023-09-06 20:38:31 -0500 |
---|---|---|
committer | turret <turret@duck.com> | 2023-09-06 20:38:31 -0500 |
commit | 5286d18e2356684475b644cbad3ae581ff927796 (patch) | |
tree | 877a0a58b9af4f8d141276b6ad7b0d6425ab003a /cat.s | |
parent | 0b874ac3d9a4ab1ecab73ae070f92b866c358f24 (diff) | |
download | cat-5286d18e2356684475b644cbad3ae581ff927796.tar.gz cat-5286d18e2356684475b644cbad3ae581ff927796.tar.bz2 cat-5286d18e2356684475b644cbad3ae581ff927796.zip |
code initial commit
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 |