Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .data
- msg db 0ah,0dh,"enter hex digit $"
- msg2 db 0ah,0dh,"in decimal it is 1"
- v db ?, "$"
- .code
- mov ax, @data
- mov ds,ax
- mov ah,9h
- lea dx, msg
- int 21h
- mov ah,1
- int 21h
- sub al,11h
- mov v,al
- mov ah,9h
- lea dx, msg2
- int 21h
- ret
Advertisement
Add Comment
Please, Sign In to add comment