Advertisement
s1ay3r44

Untitled

Feb 26th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INCLUDE Irvine32.inc
  2. .data
  3.     myVar DB 87h, 56h, 34h, 12h
  4.  
  5.     myString DB "Hello "
  6.     myString_2 DB "World", 00h
  7.  
  8.  
  9.  
  10. .code
  11. main PROC
  12.     ; What operations would output myVar as 12345678h?
  13.  
  14.     ; What happens when you output myString? Why?
  15.  
  16.     ; What is the value of EAX following this operation?
  17.     MOVZX EAX, [myVar + 5]
  18.  
  19.     MOV al, 0Ah
  20.     CALL WriteChar
  21.     CALL WaitMsg
  22.  
  23.     INVOKE ExitProcess, 0
  24. main ENDP
  25.  
  26. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement