Advertisement
Guest User

kuapl

a guest
Aug 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 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. call nl
  17. mov ah,9
  18. mov dx,offset p2
  19. int 21h
  20. mov ah,1
  21. int 21h ; al='5'
  22. sub al,30h
  23. mov ah,0
  24. mov cx,ax
  25. pop ax
  26. call nl
  27. mov ah,2
  28. mov dl,al
  29. ulit: int 21h
  30. loop ulit
  31. mov ah,4ch
  32. int 21h
  33.  
  34.  
  35. m endp
  36.  
  37. nl proc
  38. push ax
  39. pop dx
  40. mov ah,2
  41. mov dl,0ah
  42. int 21h
  43. mov dl,0dh
  44. int 21h
  45. pop dx
  46. pop ax
  47. ret
  48.  
  49.  
  50. nl endp
  51. end m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement