的我有一個問題:假設我的浮點單元的堆棧如下:使用FSTP命令
ST0 = +1.5000000000000000e+0001 ST1 = +5.0000000000000000e+0000
ST2 = +2.5000000000000000e+0001 ST3 = +0.0000000000000000e+0000
ST4 = +0.0000000000000000e+0000 ST5 = +0.0000000000000000e+0000
ST6 = +0.0000000000000000e+0000 ST7 = +0.0000000000000000e+0000
做這個指令後:
fstp st(1)
我的預測認爲,單元會將st(0)發送到st(1)(堆棧上的情況將爲1.5;1.5;2.5;0 etc
),然後彈出堆棧的頂部,以便識別爲1.5;2.5;0 etc.
而是,我看到以下內容:
ST0 = +1.5000000000000000e+0001 ST1 = +2.5000000000000000e+0001
ST2 = +0.0000000000000000e+0000 ST3 = +0.0000000000000000e+0000
ST4 = +0.0000000000000000e+0000 ST5 = +0.0000000000000000e+0000
ST6 = +0.0000000000000000e+0000 ST7 = +1.5000000000000000e+0001
我的問題是,爲什麼st(7)
改變,我如何能實現我的預期效果。謝謝你的幫助!
是的,但如何消除這個問題? – Simon
究竟是什麼問題? –