Advertisement
neurrowcat_kattzukic

ASSEMBLY. LEARN IT. (anon+Z);

May 3rd, 2015
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LEARN SOME ASSEMBLY.
  2. http://www.cs.princeton.edu/~tongbinw/bitcoinIDE/demo/kitchen-sink/docs/
  3. http://www.cs.virginia.edu/~evans/cs216/guides/x86.html
  4.  
  5. http://en.wikipedia.org/wiki/X86_assembly_language
  6.  
  7.  
  8. UNREL_LOL(qt_exit_MURPH);
  9. http://www.tommyemmanuel.com/
  10. http://www.cleverbot.com/
  11.  
  12. https://www.facebook.com/groups/akashicrecordsonline/
  13.  
  14. #######################################################;
  15. section .text
  16.     global main         ;must be declared for using gcc
  17.  
  18. main:                   ;tell linker entry point
  19.  
  20.     mov edx, len        ;message length
  21.     mov ecx, msg        ;message to write
  22.     mov ebx, 1          ;file descriptor (stdout)
  23.     mov eax, 4          ;system call number (sys_write)
  24.     int 0x80            ;call kernel
  25.  
  26.     mov eax, 1          ;system call number (sys_exit)
  27.     int 0x80            ;call kernel
  28.  
  29. section .data
  30.  
  31. msg db  'Hello, world!',0xa ;our dear string
  32. len equ $ - msg         ;length of our dear string
  33.  
  34. //TEH_TRANSIST0R
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement