Advertisement
Guest User

Untitled

a guest
May 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data;
  2. msg db "Hello world",0x0a;
  3.  
  4. section .text;
  5. global_start;
  6.  
  7. _start:
  8.     mov eax, 4;
  9.     mov ebx, 1;
  10.     mov ecx, msg;
  11.     int 0x80;
  12.  
  13.     mov eax, 1;
  14.     mov ebx, 0;
  15.     int 0x80;
  16. -----------------------
  17. >> nasm -f elf code.asm
  18. code.asm:5: warning: label alone on a line without a colon might be in error [-w+orphan-labels]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement