Advertisement
shawonrog

oRDER

Oct 21st, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. .CODE
  5. MAIN PROC
  6.  
  7. ;1ST
  8. MOV AH,1
  9. INT 21H
  10. MOV BL,AL
  11.  
  12. ;2ND
  13. MOV AH,1
  14. INT 21H
  15. MOV CL,AL
  16.  
  17. ;newline
  18. MOV AH,2
  19. MOV DL,0AH
  20. INT 21H
  21. MOV DL,0DH
  22. INT 21H
  23.  
  24. CMP BL,CL
  25. JG GREAT
  26. MOV AH,2
  27. MOV DL,BL
  28. INT 21H
  29. JMP END_IF
  30.  
  31. GREAT:
  32. MOV AH,2
  33. MOV DL,CL
  34. INT 21H
  35.  
  36. END_IF:
  37. MAIN ENDP
  38.  
  39.  
  40. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement