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 


Feature request: Input bytes instead of ASM in assembler box

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Fri Nov 04, 2016 7:41 am    Post subject: Feature request: Input bytes instead of ASM in assembler box Reply with quote

When modifying code in the disassembler, I've run into scenarios where changing the Assembly back to what an instruction originally was, results in a different byte representation (like a more optimized version of an instruction or something that uses the same number of bytes). This has a tendency to break scripts I'm working on, as well as add more steps in what I have to document during the reversing/script-writing process.

I like to work using bytes as much as possible when writing cheats, etc., so if it seems like a feasible addition, it would be really awesome to have the option to input bytes instead of Assembly in the assembler box (perhaps have 2 input boxes, one for entering Assembly and the other for bytes).

Thoughts?

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Nov 04, 2016 8:02 am    Post subject: Reply with quote

if you use code injection template scripts, you'll find that the generator also generates a commented out line saying :"alt db xx xx xx xx"

if you use that db line it will generate the exact bytes

You are also free to use 'db' everywhere else, but I don't suggest it

_________________
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
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Fri Nov 04, 2016 8:02 am    Post subject: Reply with quote

The db pseudoinstruction is a thing that exists.
Code:
mov eax,[00513424]
db A1 24 34 51 00
db 8B 05 24 34 51 00

If you don't want to use that, highlight an instruction in the disassember, press ctrl+space to go to that address in the hex viewer, and type in whatever bytes you want there.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Fri Nov 04, 2016 8:23 am    Post subject: Reply with quote

Oh, wow! That works great. I didn't realize I could use db to write bytes directly in the disassembler like that.

To clarify for others, my opening post was in reference to this box in the disassembler:



Instead of that, typing something akin to this would work:

Code:
db 48 C7 C1 00 00 00 00


Just what I was looking to do. Thanks, guys.

_________________
Back to top
View user's profile Send private message Visit poster's website
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