Advertisement
Nahid8195

Nahid

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