The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
410 B

%include "config.asm"
%ifdef FOO
%define RETVAL HELLO
%endif
section .data
msg: db "Hello World", 10
len: equ $ - msg
section .text
global main
main:
mov eax, 1 ; sys_write
mov edi, 1 ; fd = STDOUT_FILENO
mov rsi, msg ; buf = msg
mov rdx, len ; count = len
syscall
mov eax, 60 ; sys_exit
mov edi, RETVAL ; exit code
syscall