;this is the program to read one of the hex digit A-F & display it on the
;next line in decimal order(for example for a-10,b-11 such that)
.model small
.stack 100h
.data
msg db 'ENTER A HEX NUMBER: $'
msg1 db 0ah,0dh, 'THE DECIMAL VALUE IS: $'
.code
main proc
mov ax,@data
mov ds,ax
lea dx,msg...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.