Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


FPU Registers and floating-point register stack?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Mon Jun 05, 2017 11:50 am    Post subject: FPU Registers and floating-point register stack? Reply with quote

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?

I'm just confused....

_________________
**************

A simple example is better then ten links. Very Happy
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Mon Jun 05, 2017 12:45 pm    Post subject: This post has 1 review(s) Reply with quote

Q1 & Q2: http://forum.cheatengine.org/viewtopic.php?t=604329

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.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Mon Jun 05, 2017 3:59 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Q1 & Q2: http://forum.cheatengine.org/viewtopic.php?t=604329

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.

_________________
**************

A simple example is better then ten links. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites