Advertisement
shawonrog

iNCOMPLETE PROJECT ASM NAFI

Dec 3rd, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. WELCOME DW "WELCOME TO OUR PROJECT$"
  5. MEMBERS DW "GROUP MEMBERS$"
  6. NAFI DW "MD.RASHID ARIF (171-15-1199)$"
  7. PINO DW "MD.HANIF MAHMUD (171-15-1218)$"
  8. ATIK DW "MD.ATIKUR RAHMAN (171-15-1227)$"
  9. MIZAN DW "MD.MIZANUR RAHMAN (171-15-1208)$"
  10. LIPU DW "SIBLUR RAHMAN (171-15-1210)$"
  11. MSG1 DW "Please Input your Name: $"
  12. MSG2 DW "Your Output is: $"
  13. .CODE
  14. MAIN PROC
  15. MOV AX,@DATA
  16. MOV DS,AX
  17.  
  18. MOV AH,9
  19. LEA DX,WELCOME
  20. INT 21H
  21. CALL NEW
  22. CALL NEW
  23.  
  24. MOV AH,9
  25. LEA DX,MEMBERS
  26. INT 21H
  27. CALL NEW
  28. CALL NEW
  29.  
  30. MOV AH,9
  31. LEA DX,NAFI
  32. INT 21H
  33. CALL NEW
  34. CALL NEW
  35.  
  36. MOV AH,9
  37. LEA DX,PINO
  38. INT 21H
  39. CALL NEW
  40. CALL NEW
  41.  
  42. MOV AH,9
  43. LEA DX,ATIK
  44. INT 21H
  45. CALL NEW
  46. CALL NEW
  47.  
  48. MOV AH,9
  49. LEA DX,MIZAN
  50. INT 21H
  51. CALL NEW
  52. CALL NEW
  53.  
  54. MOV AH,9
  55. LEA DX,LIPU
  56. INT 21H
  57. CALL NEW
  58. CALL NEW
  59. CALL NEW
  60.  
  61. MOV AH,9
  62. LEA DX,MSG1
  63. INT 21H
  64. CALL NEW
  65.  
  66. XOR CX,CX
  67. MOV AH,1
  68. INT 21H
  69. MOV AL,CL
  70.  
  71. WHILE_:
  72. CMP CL,0DH
  73. JE POP_
  74. PUSH AX
  75. INC CX
  76. ; INT 21H
  77. CMP CL,41H
  78. JE VOWEL
  79. CMP CL,45H
  80. JE VOWEL
  81. CMP CL,49H
  82. JE VOWEL
  83. CMP CL,4FH
  84. JE VOWEL
  85. CMP CL,55H
  86. JE VOWEL
  87. JMP CONSONENT
  88.  
  89.  
  90. POP_:
  91. CALL NEW
  92.  
  93. POP DX
  94. MOV AH,2
  95. INT 21H
  96.  
  97. CALL NEW
  98.  
  99. MOV AH,2
  100. MOV DL,BL
  101.  
  102. CALL NEW
  103.  
  104. MOV AH,2
  105. MOV DL,BH
  106.  
  107. LOOP POP_
  108.  
  109. VOWEL:
  110. ADD BL,1
  111. INT 21H
  112. JMP WHILE_
  113.  
  114. CONSONENT:
  115. ADD BH,1
  116. INT 21H
  117. JMP WHILE_
  118.  
  119. MAIN ENDP
  120. NEW PROC
  121. MOV AH,2
  122. MOV DL,0AH
  123. INT 21H
  124. MOV DL,0DH
  125. INT 21H
  126. RET
  127. NEW ENDP
  128.  
  129. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement