Advertisement
shawonrog

ODD EVEN CHEAK

Oct 2nd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. .CODE
  5. MAIN PROC
  6. MOV AH,1
  7. INT 21H
  8. MOV BL,AL
  9.  
  10. CMP BL,'1'
  11. JE EQL1
  12. CMP BL,'3'
  13. JE EQL1
  14.  
  15. EQL1:
  16. MOV AH,2
  17. MOV DL,'O'
  18. INT 21H
  19. JMP END_CASE
  20.  
  21. CMP BL,2
  22. JE EQL1
  23. CMP BL,4
  24. JE EQL1
  25.  
  26. EQL2:
  27. MOV AH,2
  28. MOV DL,'E'
  29. INT 21H
  30. JMP END_CASE
  31.  
  32. END_CASE:
  33. MAIN ENDP
  34.  
  35. NEW PROC
  36. MOV AH,2
  37. MOV DL,0AH
  38. INT 21H
  39. MOV DL,0DH
  40. INT 21H
  41. RET
  42. NEW ENDP
  43.  
  44. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement