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 


CE 7.0 Bug - PUSH SHORT gets translated as PUSH LONG.

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

Joined: 30 Aug 2019
Posts: 3

PostPosted: Fri Aug 30, 2019 3:22 pm    Post subject: CE 7.0 Bug - PUSH SHORT gets translated as PUSH LONG. Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 370

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

PostPosted: Fri Aug 30, 2019 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
flipend0
How do I cheat?
Reputation: 0

Joined: 30 Aug 2019
Posts: 3

PostPosted: Fri Aug 30, 2019 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 370

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

PostPosted: Fri Aug 30, 2019 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
flipend0
How do I cheat?
Reputation: 0

Joined: 30 Aug 2019
Posts: 3

PostPosted: Fri Aug 30, 2019 3:57 pm    Post subject: Reply with quote

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
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