Advertisement
arfin97

3. Uppercase/Lowercase.asm

Oct 24th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. .CODE
  5. INCLUDE 'EMU8086.INC'
  6.  
  7. START:
  8. MOV AH, 1
  9. INT 21H
  10.  
  11.  
  12. CMP AL, 'A'
  13. JGE CHECK
  14. JL END_IF
  15.  
  16. CHECK:
  17. CMP AL, 'Z'
  18. JLE PRINT
  19. JG END_IF
  20.  
  21. PRINT:
  22. MOV AH, 2
  23. MOV DL, AL
  24. INT 21H
  25. JMP START
  26.        
  27. END_IF:
  28. MOV AH, 4CH
  29. INT 21H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement