Advertisement
Guest User

Little test in MASM

a guest
Apr 16th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include \masm32\include\masm32rt.inc
  2.  
  3.  
  4.  
  5. .data
  6.  
  7. Password   DWORD   527, 111, 4120, 69360
  8. Input      BYTE    215, 111, 236
  9.  
  10.  
  11.  
  12. .code
  13.  
  14. start :
  15.  
  16.     movzx ebx, Input[1]
  17.  
  18.     cmp ebx, Password[4]
  19.  
  20.     jne Wrong
  21.  
  22.     inkey "Yes !"
  23.     exit
  24.  
  25.     Wrong :
  26.  
  27.         inkey "No..."
  28.         exit
  29.  
  30. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement