Loading

Paste #pwx5mjm5y

  1. ; Example "Hello, World!" Classic:
  2.  
  3.     bits 64
  4.  
  5. %include    "linux-syscall.macro"
  6.  
  7.     section .text
  8.  
  9.     global  _start
  10.  
  11. _start:
  12.     LINUX   write,Linux.stdout,HelloWorld,HelloWorld.sizeof
  13.     LINUX   exit,0
  14.  
  15.     section .data
  16.  
  17. HelloWorld:     db  "Hello, World of 64bit Linux Assembly!",10
  18. HelloWorld.sizeof   equ $-HelloWorld
  19.