Advertisement
Guest User

x86

a guest
Jun 2nd, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %include "io.inc"
  2.  
  3. section .text
  4. global CMAIN
  5. CMAIN: ;int argc, char **argv
  6.     mov ebp, esp
  7.     cmp dword[ebp + 4], 1
  8.     jne .exit
  9.     mov eax, dword[ebp + 8]
  10.     mov eax, dword[eax]
  11.     PRINT_STRING [eax]
  12.     .exit:
  13.     xor eax, eax
  14.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement