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

5 years ago
  1. ; hello_world_macro.asm
  2. ; Prints "Hello, world!" using Assembly macros
  3. ; Compile with "nasm -f elf64 hello_world_macro.asm && ld hello_world_macro.o -o hello_world_macro"
  4. %include 'macros.asm'
  5. .text:
  6. global _start
  7. _start:
  8. printStr msg
  9. exit 0
  10. .data:
  11. ; initialize doubleword msg variable
  12. msg db 'Hello, world!',0x0