a3ology

Assembly Hello World

Jan 18th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2.     message db 'Hello world!',0xa
  3.     messageLen equ $-message
  4.  
  5. section .text
  6.     global _start
  7.  
  8. _start:
  9.     mov eax,4
  10.     mov ebx,1
  11.     mov ecx,message
  12.     mov edx,messageLen
  13.     int 80h
  14.  
  15.     mov eax,1
  16.     mov ebx,0
  17.     int 80h
Advertisement
Add Comment
Please, Sign In to add comment