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.
 

16 lines
323 B

; hello_world_macro.asm
; Prints "Hello, world!" using Assembly macros
; Compile with "nasm -f elf64 hello_world_macro.asm && ld hello_world_macro.o -o hello_world_macro"
%include 'macros.asm'
.text:
global _start
_start:
printStr msg
exit 0
.data:
; initialize doubleword msg variable
msg db 'Hello, world!',0x0