i have the numbers in the array now, both in single and double digits now what i am trying to do is display them back out to the screen.
this is what i have and i dont know why it aint working
mov bx,offset numarray
mov cx,count
outtake:mov al,[bx]
cmp al,9 ;to check if it is double digit
ja divnum
add al,48 ;if single digit then display
mov ah,2
mov dl,al
mov 21h
jmp next
divnum: mov fnum,al ;stores whole num in fnum
mov al,10 ;divide by 10 to place first number in al and remainder in ah
div fnum
add al,48
mov snum,ah ;stores second digit
mov ah,2
mov dl,al ;display first digit
int 21h
mov al,snum
add al,48
mov dl,al ;display second digit
int 21h
next: inc bx
loop outtake
this makes sense to me so i dont see why it aint working. please help