Advertisement
mohsentux

Nasm_Say_Hi

Feb 17th, 2022
1,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SECTION .DATA
  2.     hello:      db      'Hello World',10
  3.     helloLen    equ     $-hello
  4.  
  5. SECTION .TEXT
  6.     GLOBAL say_hi
  7.  
  8. say_hi:
  9.     mov eax,4       ; write()
  10.     mov ebx,1       ; STDOUT
  11.     mov ecx,hello
  12.     mov edx,helloLen
  13.     ret             ; Return control
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement