Guest User

Untitled

a guest
Feb 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;template program
  2.  
  3. include \masm32\include\masm32rt.inc
  4.  
  5. ;prototypes
  6.  
  7. .data
  8.  
  9.    num1 sdword 5
  10.    
  11. .data?
  12.  
  13.  
  14.    
  15. .const
  16.  
  17. .code
  18.  
  19. start:
  20.  
  21.     main proc
  22.  
  23.     mov eax, 35              
  24.     cmp num1, eax               ;5 - 3    compare 5 and 3
  25.     je eqqq                     ;jump if equal to eqqq
  26.     print "not equal", 0Ah      ;else print not equal
  27. eqqq: print "equal", 0Ah
  28.     inkey                       ;wait for input
  29.  
  30.  
  31.     ret
  32.        
  33.     main endp
  34.  
  35. end start
Add Comment
Please, Sign In to add comment