Advertisement
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 a hex digit CApital Word Only $'
- msg2 db 0ah,0dh, 'IN decimal it is 1'
- c1 db ?,'$'
- .code
- mov ax,@data
- mov DS,ax ;
- mov ah,9
- lea dx,msg ;msg er jonow print
- int 21h
- mov ah,1 ;single Char input
- int 21h ; every input output process here
- sub al,11h
- mov c1,al
- mov ah,9
- lea dx,msg2 ;msg2 er jono print hobey
- int 21h
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement