Files
CMake/Tests/NasmOnly/nasmonly.nasm
T
Vito Gamberini 7cf45c9e6a ASM_NASM: Improve support for standalone usage
* Add tests for standalone NASM usage

* Change generic ASM_NASM executable linker to <CMAKE_LINKER>

* Use CMAKE_SYSTEM_PROCESSOR to determine output format when used
  without a C/CXX compiler
2024-03-04 13:09:58 -05:00

20 lines
199 B
NASM

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