bipo143

micro pro. lab 10/17

Feb 10th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. ; You may customize this and other start-up templates;
  3. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  4.  
  5. org 100h
  6.  
  7. .data
  8. msg db 0ah,0dh,"enter hex digit $"
  9. msg2 db 0ah,0dh,"in decimal it is 1"
  10. v db ?, "$"
  11.  
  12. .code
  13.  
  14. mov ax, @data
  15. mov ds,ax
  16.  
  17. mov ah,9h
  18. lea dx, msg
  19. int 21h
  20.  
  21. mov ah,1
  22. int 21h
  23.  
  24. sub al,11h
  25. mov v,al
  26.  
  27. mov ah,9h
  28. lea dx, msg2
  29. int 21h
  30.  
  31. ret
Advertisement
Add Comment
Please, Sign In to add comment