simple.asm 355 B

12345678910111213141516171819202122232425
  1. .model small
  2. .code
  3. org 100h
  4. start: mov ah,9h
  5. mov dx, offset msg
  6. int 21h
  7. mov ah,1h
  8. int 21h
  9. mov bl,al
  10. mov ah,9h
  11. mov dx, offset msg1
  12. int 21h
  13. mov ah,8h
  14. int 21h
  15. mov cl,al
  16. sub cl,30h
  17. mov ch,0
  18. mov ah,2h
  19. mov dl,bl
  20. LO: int 21h
  21. loop LO
  22. int 20h
  23. msg: db 'Enter Some Key: $'
  24. msg1:db 10,13,'Press number of repeat: $'
  25. end start