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 


[Help]Size of opcodes

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
smx
Newbie cheater
Reputation: 0

Joined: 02 Sep 2012
Posts: 13

PostPosted: Sun Aug 04, 2013 6:30 pm    Post subject: [Help]Size of opcodes Reply with quote

When i have to do code injections or asm edits where the size of opcodes matter, i always struggle to get the opcode length (bytes) and i have to assemble it somewhere, then look at Bytes column

random example:
chrome.exe+48B23 - 75 06 - jne chrome.exe+48B2B
chrome.exe+48B45 - E9 89FEFFFF - jmp chrome.exe+489D3

Is there a way to tell how many bytes does an opcode require without assembling it?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Aug 04, 2013 6:41 pm    Post subject: Reply with quote

easiest method is just use the code injection template in the auto assembler.
it figures out the size of the instructions for you. You just have to make sure that nothing jumps inbetween the instruction(s) it's overwriting

But if you do it yourself you'll have to assemble it manually, or don't pick instructions that are affected by their position. (Jumps and calls are affected by their location)

_________________
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
smx
Newbie cheater
Reputation: 0

Joined: 02 Sep 2012
Posts: 13

PostPosted: Sun Aug 04, 2013 7:41 pm    Post subject: Reply with quote

I just digged in how the opcodes are encoded/handled and...
I'll stick with the auto assembler then, Thank You Wink
Back to top
View user's profile Send private message
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Mon Aug 05, 2013 4:18 am    Post subject: Reply with quote

basically two numbers joins to form an opcode..
E9 89FEFFFF consisits of 5 bytes(E9 89 FE FF FF).
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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