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 


Bug in Auto-Assembler and Hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Jamboz
How do I cheat?
Reputation: 0

Joined: 12 Jan 2011
Posts: 9
Location: Finland

PostPosted: Sun Jan 16, 2011 3:54 pm    Post subject: Bug in Auto-Assembler and Hotkeys Reply with quote

It took me about 1 hour to find out the problem on my code. This is a simple ACos function that i wrote in AA, but it didn't compile it right.

Code:
// 2*ATan(Sqrt(1-x*x)/(1+x))
acos2:
fld st(0)
// st(0)=x, st(1)=x
fmul st(0)
// st(0)=x*x, st(1)=x
fld1
// st(0)=1, st(1)=x*x, st(2)=x
fsubrp // 1-x*x = st(0)-st(1)
// st(0)=1-x*x, st(1)=x
fsqrt // sqrt(1-x*x)
// st(0)=sqrt(1-x*x), st(1)=x
fld1
// st(0)=1, st(1)=sqrt(1-x*x), st(2)=x
faddp st(2), st(0)// 1+x = st(0)+st(2)     <---- THIS LINE
// st(0)=sqrt(1-x*x), st(1)=1+x
fdivrp // Sqrt(1-x*x)/(1+x) = st(0)/st(1)
// st(0)=Sqrt(1-x*x)/(1+x)
fld1 // this is for atan
// st(0)=1, st(1)=Sqrt(1-x*x)/(1+x)
fpatan
// st(0)=atan(Sqrt(1-x*x)/(1+x))
fmul [rad2deg] // convert it to degrees
fadd st(0) // atan(Sqrt(1-x*x)/(1+x))+atan(Sqrt(1-x*x)/(1+x)) = 2*atan(Sqrt(1-x*x)/(1+x))
// st(0)=2*atan(Sqrt(1-x*x)/(1+x))
retn


the marked line turned out as
DE20 - FISUB WORD PTR DS:[EAX]
instead of what it should. (I checked it on OllyDBG)

i had to replace this line with
db DE C2
, which are the real bytes, to get it work.

Just letting you know if it's a bug or something.. this kind of things are quite annoying.


Also, this is the first thing that I noticed on CE 6.0:
When you try to delete the assigned hotkeys, you are able to remove only some of them. If you remove the hotkey, close the window and then open it again, it still remains there. The only way to remove the hotkeys is to delete the address from the address list and add it again.

-Jambo
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Sun Jan 16, 2011 3:59 pm    Post subject: Reply with quote

I'll check it out
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Sun Jan 16, 2011 4:37 pm    Post subject: Reply with quote

Just in time as it's still within the 7 day after release:

You can redownload ce. It has been fixed

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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