include io.h
cr equ 0dh
lf equ 0ah
stacksg segment stack
dw 100 dup(?)
stacksg ends
datasg segment
prp1 db '1st Number:',cr,lf,0
prp2 db '2nd Number:',cr,lf,0
prp3 db 'The result:',cr,lf,0
numA dw ?
numB dw ?
sum dw 20 dup(?),0
entersim db cr,lf
datasg ends
codesg segment
start:
assume cs:codesg,ds:datasg
mov ax,datasg
mov ds,ax
output prp1
inputs numA,10
atoi numA
mov numA,ax
output prp2
inputs numB,10
atoi numB
mov bx,ax
mov ax,numA
mul bx
itoa sum,ax
output entersim
output prp3
output sum
output entersim
mov al,0
mov ah,4ch
int 21h
codesg ends
end start
i can not show the whole result in cases that the result of multiply is bigger than 16bit and the answer is stored on dx:ax pair register,how can i dispaly the correct answer of the operation in the screen? if have sample code for this situation write it out... tnx friends