aboutsummaryrefslogtreecommitdiff
path: root/examples/greet_from_library/Library.asm
blob: a23acf398d292f8a0dea4195a4575b4bfd163d4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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