diff options
| author | Arslaan Pathan <[email protected]> | 2026-09-30 12:37:06 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-09-30 12:39:55 +1300 |
| commit | 7e9043d484c30d018a012f835dda5eae9fa17860 (patch) | |
| tree | d44842c091e6cfa48d16062cfc96bf31bdb2d760 /loop.asm | |
| parent | 2bb4f7e34806054fa15174b2586241c2b82e040c (diff) | |
| download | x86-asm-7e9043d484c30d018a012f835dda5eae9fa17860.tar.xz x86-asm-7e9043d484c30d018a012f835dda5eae9fa17860.zip | |
idk whats even in this commit
Diffstat (limited to 'loop.asm')
| -rw-r--r-- | loop.asm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/loop.asm b/loop.asm new file mode 100644 index 0000000..fd0ee0e --- /dev/null +++ b/loop.asm @@ -0,0 +1,19 @@ +global main + +extern printf + +section .data + msg db "cheese ", 0 + +section .text + +main: + sub rsp, 8 +.print + lea rdi, [rel msg] + call printf wrt ..plt + jmp .print + mov eax, 0 + add rsp, 8 + ret + |
