mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
7cf45c9e6a
* 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
20 lines
199 B
NASM
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
|