I would like to multiple integers like 10 and 100 with 1.06 or 2.05 and display the value. How to do this? The code below is a segment used to print out 2 digit numbers and 3 digit numbers.
a DB 100
b DB 10
d1 DB 100
d2 DB 10
quo DB 0
;--to display 2 digit numbers like 10
mov ax,0
mov al,b
mov cl,10
div cl
mov cl,al
mov ch,ah
mov ah, 02h
mov dl,cl
add dl, 30h
int 21h
mov ah, 02h
mov dl,ch
add dl, 30h
int 21h
three_digit:
mov ax,0
mov al,a
div d1
mov quo,al
mov a,ah
mov ah, 02h
mov dl,quo ;2nd digit in CH = not ascii
add dl, 30h ;convert to ascii for display
int 21h
mov ax,0
MOV al,d1
DIV d2
MOV d1,al
LOOP three_digit