I have this code using masm32:
FLD Temp ;load Temp to FP stack
PrintDec Temp ;DEBUGGER, print value of Temp (256)
FLD Cr ;load Cr to FP stack
FST Temp ;store ST(0) to Temp
PrintDec Temp ;DEBUGGER, print value of Temp (-2)
FMUL ;ST(0) x ST(1)
FST Temp ;store ST(0) to Temp
PrintDec Temp ;DEBUGGER, print value of Temp (-512)
The debug window displays this:
Temp = 256
Temp = -2
Temp = -2
I expected the last Temp to be -512, but it is -2. Where am I going wrong?
FLD Temp ;load Temp to FP stack
PrintDec Temp ;DEBUGGER, print value of Temp (256)
FLD Cr ;load Cr to FP stack
FST Temp ;store ST(0) to Temp
PrintDec Temp ;DEBUGGER, print value of Temp (-2)
FMUL ;ST(0) x ST(1)
FST Temp ;store ST(0) to Temp
PrintDec Temp ;DEBUGGER, print value of Temp (-512)
The debug window displays this:
Temp = 256
Temp = -2
Temp = -2
I expected the last Temp to be -512, but it is -2. Where am I going wrong?