View previous topic :: View next topic |
Author |
Message |
flipend0 How do I cheat? Reputation: 0
Joined: 30 Aug 2019 Posts: 3
|
Posted: Fri Aug 30, 2019 3:22 pm Post subject: CE 7.0 Bug - PUSH SHORT gets translated as PUSH LONG. |
|
|
In the latest version of CE 7.0, either from the Single-line Assembler or from Auto Assembly. Typing PUSH 00 will correctly represent as single byte PUSH (6A 00). However, typing PUSH 01 will incorrectly represent as a 4 byte PUSH (68 01 00 00 00). Even attempts of typing PUSH SHORT 1 or PUSH 0x1 or PUSH #1 will make CE represent the 4 byte version of PUSH.
What it should do instead:
If the instruction is PUSH up to 7F, instruct the usage of single byte PUSH (6A 00 ~ 6A 7F). If the instruction is higher than 7F, instruct the usage of 4 byte PUSH (68 80 00 00 00 ~ 68 FF FF FF FF) unless defined as SHORT or UNSIGNED in the assembler.
Previous versions of CE does not have this issue.[/b]
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Fri Aug 30, 2019 3:38 pm Post subject: |
|
|
I can't reproduce
Code: |
push 02 = 6a 02
push 2 = 6a 02
push 7f = 6a 7f
push 80 = 68 80 00 00 00
push 002 = 6a 02
push 0002 = 6a 02
push 00002 = 6a 02
push 000002 = 6a 02
push 0000002 = 6a 02
push 00000002 = 68 02 00 00 00
|
Do you have any invisible characters between the space and 02 ?
E.g windows calculator adds invisible characters since recently on certain languages
_________________
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
Last edited by Dark Byte on Fri Aug 30, 2019 3:45 pm; edited 1 time in total |
|
Back to top |
|
|
flipend0 How do I cheat? Reputation: 0
Joined: 30 Aug 2019 Posts: 3
|
Posted: Fri Aug 30, 2019 3:44 pm Post subject: |
|
|
That's extremely odd, it appears differently in my case. I'm not sure what's going on then.
i.imgur(.)com/Hdr85FZ(.)gifv
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Fri Aug 30, 2019 3:47 pm Post subject: |
|
|
ah, the 32-bit CE
_________________
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 |
|
|
flipend0 How do I cheat? Reputation: 0
Joined: 30 Aug 2019 Posts: 3
|
Posted: Fri Aug 30, 2019 3:57 pm Post subject: |
|
|
From the looks of it, the bug only appears in the cheatengine-i386.exe version of cheat engine, yeah. the other 2 programs cheatengine-x86_64.exe and Cheat Engine.exe does not have this issue. Primary I only modify 32 bit programs unless needed otherwise so usually the i386 program is my go to, but for now I'll use the x86_64 version.
|
|
Back to top |
|
|
|