diff options
Diffstat (limited to 'examples/greet_from_library/Library.asm')
| -rw-r--r-- | examples/greet_from_library/Library.asm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/greet_from_library/Library.asm b/examples/greet_from_library/Library.asm new file mode 100644 index 0000000..a23acf3 --- /dev/null +++ b/examples/greet_from_library/Library.asm @@ -0,0 +1,15 @@ +global library_perform +extern printf + +section .rodata +message: db "Hello World!", 13, 10, 0 + +section .text +library_perform: + sub rsp, 8 + sub rsp, 32 + mov rcx, qword message + call printf + add rsp, 32 + + ret |