Advertisement
shawonrog

CAPITAL TO SMALL ASSEMBLY LANGUAGE

Sep 18th, 2018
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. .MODEL SMALL
  3. .STACK 100H
  4. .DATA
  5. MSG1 DW "CAPITAL LETTER- $"
  6. MSG2 DW "SMALL LETTER- $"
  7.  
  8. .CODE
  9. MAIN PROC
  10.  
  11. MOV AX,@DATA
  12. MOV DS,AX
  13.  
  14. ;MSG1
  15. LEA DX,MSG1
  16. MOV AH,9
  17. INT 21H
  18.  
  19. ;SCAN
  20. MOV AH,1
  21. INT 21H
  22. MOV BL,AL
  23. ADD BL,32
  24.  
  25. ;NEW LINE
  26. MOV AH,2
  27. MOV DL,0DH
  28. INT 21H
  29. MOV DL,0AH
  30. INT 21H
  31.  
  32. ;MSG2
  33. LEA DX,MSG2
  34. MOV AH,9
  35. INT 21H
  36.  
  37. ;PRINT
  38. MOV AH,2
  39. MOV DL,BL
  40. INT 21H
  41.  
  42. MAIN ENDP
  43. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement