Advertisement
Guest User

tabachoyyyy

a guest
Aug 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. .model small
  2. .stack
  3. .data
  4. p1 db 'Enter Char: $'
  5. p2 db 'Enter number: $'
  6. .code
  7. m proc
  8. mov ax,@data
  9. mov ds,ax
  10. mov ah,9
  11. mov dx,offset p1
  12. int 21h ; al='*'
  13. mov ah,1
  14. int 21h
  15. push ax
  16. mov ah,9
  17. mov dx,offset p2
  18. int 21h
  19. mov ah,1
  20. int 21h ; al='5'
  21. sub al,30h
  22. mov ah,0
  23. mov cx,ax
  24. pop ax
  25. mov ah,2
  26. mov dl,al
  27. ulit: int 21h
  28. loop ulit
  29. mov ah,4ch
  30. int 21h
  31.  
  32.  
  33. m endp
  34. end m
  35.  
  36. nl proc
  37. mov ah,2
  38. mov dl,0ah
  39. int 21h
  40. mov dl,0dh
  41. int 21h
  42. ret
  43.  
  44.  
  45. nl endp
  46. end m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement