Advertisement
Gireada

PM L2

Oct 16th, 2017
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #make com#
  2. Org 100h
  3. Jmp start
  4. a DB ?
  5. b DB ?
  6. c DB ?
  7. M1 DB 'a=', '$'
  8. M2 DB 13, 10, 'b=', '$'
  9. M3 DB 13, 10, 'c=', '$'
  10. M4 DB 13, 10, '$'
  11. M5 DB ,'+', '$'
  12. M6 DB ,'=', '$'
  13. start:
  14.  
  15. lea dx, M1
  16. mov ah, 09h
  17. int 21h
  18.  
  19. mov ah, 01h
  20. int 21h
  21.  
  22. sub al, 48
  23. mov a, al
  24. lea dx, M2
  25. mov ah, 09h
  26. int 21h
  27.  
  28. mov ah, 01h
  29. int 21h
  30.  
  31. sub al, 48
  32. mov b, al
  33. lea dx, M3
  34. mov ah, 09h
  35. int 21h
  36.  
  37. mov ah, 01h
  38. int 21h
  39.  
  40. sub al, 48
  41. mov c, al
  42. lea dx, M4
  43. mov ah, 09h
  44. int 21h
  45.  
  46. mov dl, a
  47. add dl, 48
  48. mov ah, 02h
  49. int 21h
  50.  
  51. lea dx,M5
  52. mov ah, 09h
  53. int 21h
  54.  
  55. mov dl, b
  56. add dl, 48
  57. mov ah, 02h
  58. int 21h
  59.  
  60. lea dx,M5
  61. mov ah, 09h
  62. int 21h
  63.  
  64. mov dl, c
  65. add dl, 48
  66. mov ah, 02h
  67. int 21h
  68.  
  69. lea dx, M6
  70. mov ah, 09h
  71. int 21h
  72.  
  73. mov dl, a
  74. add dl, b
  75. add dl, c
  76. add dl, 48
  77. mov ah, 02h
  78. int 21h
  79. mov ah, 4Ch
  80. int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement