summaryrefslogtreecommitdiffstats
path: root/Tests/NasmOnly/nasmonly.nasm
blob: db9b6559f54eb735e2f72d9d7e8e09279f1cf515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
global _start

extern LibNasm1Func

section .text
_start:
  xor rax, rax
  call LibNasm1Func
  cmp rax, 1
  jne err

  mov rax, 60
  xor rdi, rdi
  syscall

err:
  mov rax, 60
  mov rdi, 1
  syscall