Jamboz How do I cheat?
Reputation: 0
Joined: 12 Jan 2011 Posts: 9 Location: Finland
|
Posted: Sun Jan 16, 2011 3:54 pm Post subject: Bug in Auto-Assembler and Hotkeys |
|
|
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
|
|