Posted: Mon Jun 05, 2017 11:50 am Post subject: FPU Registers and floating-point register stack?
I have difficulties understanding the following opcode: fmul, fstp, etc.
I have done some research, and found something called:floating-point register stack, such as ST0, ST1, etc. Also, in CE, under "FPURegisters", there is an "Extended" tag in the drop down list, which shows something like this:
69.08
Nan
Nan
Nan
Nan
2097152.00
10000.00
3125029.00
Question 1: So, is the stack above only for floating-point registers? It's different from the "x86 stack" we usually talk about, right?
Question 2: how does the values got pushed onto such stack?
Question 3: what does " fmul dword ptr [ebp-01]" actually do? It indicates a dword pointer, and multiply to what? Where does the data come from, and after the computation, where does the result go?
Question 4: what are the relationships between FPU registers and XMM registers?
Q3: that instruction multiplies the value on the top of the fpu stack by the single-precision floating point value located at the address ebp-1 and stores the result at the top of the fpu stack.
Q4: They both work with IEEE 754 floating point values in different ways. Besides that general statement, you'd be better off looking at how each works independently. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Q3: that instruction multiplies the value on the top of the fpu stack by the single-precision floating point value located at the address ebp-1 and stores the result at the top of the fpu stack.
Q4: They both work with IEEE 754 floating point values in different ways. Besides that general statement, you'd be better off looking at how each works independently.
Thanks again, Penguin. Well explained. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum