Now iam working on the currency conversion system which able to convert from RM to USD using assembly language with 32-bit, but now i stuck at divide the floating point value like 0.19. Or is there any ways to do it? Please help me a bit of urget
Thank in advance
INCLUDE Irvine32.inc
.data
welcomeUSD db "Welcome to Currency Convertion(RM to USD)",0
amount1 db "Please eneter amount:",0
convertUSD db "Enter conversion rate:",0
convertionRate real4 ?
input dword ?
input1 dword ?
calcProd real4 ?
usdInput dword ?
usdconvertionRate real4 ?
.code
main PROC
;==================================
mov edx, OFFSET welcomeUSD
call WriteString
call CrLf
;Get user input
;============================================
mov edx, OFFSET amount1
call WriteString
call ReadInt
mov usdInput,eax
call CrLf
;Get user input 2
;===================================
mov edx ,offset convertUSD
call WriteString
call ReadDec
mov usdconvertionRate ,eax
mov eax, usdInput
mov ebx, usdconvertionRate
xor edx, edx
div ebx
call WriteDec
mov al, '.'
call WriteChar
imul eax, edx, 10
xor edx, edx
div ebx
call WriteDec
imul eax, edx, 10
xor edx, edx
div ebx
call WriteDec
exit
main ENDP
END main