Advertisement
shawonrog

vangga lekha

Oct 2nd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. A DW "INPUT: $"
  5. B DW "OUTPUT: $"
  6.  
  7. .CODE
  8. MAIN PROC
  9.  
  10. MOV AX,@DATA
  11. MOV DS,AX
  12.  
  13. MOV AH,9
  14. LEA DX,A
  15. INT 21H
  16.  
  17. MOV AH,1
  18. INT 21H
  19. MOV BL,AL
  20.  
  21. MOV AH,1
  22. INT 21H
  23. MOV CL,AL
  24.  
  25. MOV AH,1
  26. INT 21H
  27. MOV CH,AL
  28.  
  29.  
  30. MOV AH,2
  31. MOV DL,0AH
  32. INT 21H
  33. MOV DL,0DH
  34. INT 21H
  35.  
  36. MOV AH,9
  37. LEA DX,B
  38. INT 21H
  39.  
  40. MOV AH,2
  41. MOV DL,0AH
  42. INT 21H
  43. MOV DL,0DH
  44. INT 21H
  45.  
  46. MOV AH,2
  47. MOV DL,BL
  48. INT 21H
  49.  
  50. MOV AH,2
  51. MOV DL,0AH
  52. INT 21H
  53. MOV DL,0DH
  54. INT 21H
  55.  
  56. MOV AH,2
  57. MOV DL,CL
  58. INT 21H
  59.  
  60.  
  61. MOV AH,2
  62. MOV DL,0AH
  63. INT 21H
  64. MOV DL,0DH
  65. INT 21H
  66.  
  67.  
  68. MOV AH,2
  69. MOV DL,CH
  70. INT 21H
  71.  
  72. MAIN ENDP
  73.  
  74.  
  75.  
  76. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement