Im trying to display the floating point in dosbox in order for debuging. I think the floating point number is store as IEEE 754 single precision. Due the the constraint im only able to use dosbox, hence im not able to use extern _printf to print the floating point in the assembly file. Is this possible to print floating point number in assembly 8086 dosbox? Thanks!
.code
a dd 3.2
z dd 2.5
main proc
mov ax,@data
mov ds,ax
finit
fldpi
fld [a]
fld [z]
fsub st(0),st(1)
mov eax,st(0)
mov dl,10
div dl
add ah,30h
mov dl,ah
mov ah,02h
int 21h
add al,30h
mov ah,02h
mov dl,al
int 21h
mov ax,4c00h
int 21h