diff options
| author | Fuwn <[email protected]> | 2022-02-07 12:26:07 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 07:46:03 +0000 |
| commit | 4ace7cad20545d585d2ce8c5e93e4dc43358801b (patch) | |
| tree | 043b73bdd939f955f2b4d1e6309c8b697d6e0544 /examples/greet/Main.asm | |
| download | divina-4ace7cad20545d585d2ce8c5e93e4dc43358801b.tar.xz divina-4ace7cad20545d585d2ce8c5e93e4dc43358801b.zip | |
feat(divina): pre-release :star:
Diffstat (limited to 'examples/greet/Main.asm')
| -rw-r--r-- | examples/greet/Main.asm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/greet/Main.asm b/examples/greet/Main.asm new file mode 100644 index 0000000..ae425ec --- /dev/null +++ b/examples/greet/Main.asm @@ -0,0 +1,17 @@ +global main +extern printf + +section .rodata +msg: db "Hello World!", 13, 10, 0 + +section .text +main: + sub rsp, 8 + sub rsp, 32 + mov rcx, qword msg + call printf + add rsp, 32 + + xor eax, eax + add rsp, 8 + ret |