Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interprete & Compilation process of the code 1

Status
Not open for further replies.

Hasanuzzaman

Programmer
Nov 17, 2012
1
0
0
DE
;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 ?
 
If i understand your question, look at the executable module that was generated (in hex).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top