FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

interprete & Compilation process of the code




;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
mov ah,9
int 21h

mov ah,1
int 21h
mov bl,al
sub bl,11h

lea dx,msg1
mov ah,9
int 21h

mov ah,2
mov dl,'1'
int 21h

mov dl,bl
int 21h

mov ah,4ch
int 21h

main endp
end main

question: how this code interpreted & compiled in deep view ?[/code]



0 blog comments below




FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.