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 


Get Opcodes with symbol names instead of just numbers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sun Mar 28, 2021 4:10 am    Post subject: Get Opcodes with symbol names instead of just numbers Reply with quote

I am using disassemble() and splitDisassembledString() functions to read opcodes from addresses but I get opcodes with just addresses instead of module-address + offset. For example:

Code:
dis = disassemble('cheatengine-x86_64-SSE4-AVX2.exe+3CC4 ')
p,q,r,s = splitDisassembledString(dis)
print(q)

gives me call 004494F0 but I want it to return call cheatengine-x86_64-SSE4-AVX2.exe+494F0, same is other instruction like lea,mov etc.

What is the way to copy opcode text instead of actual opcode in lua. e
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Mar 28, 2021 4:58 am    Post subject: Reply with quote

you can use the default disassembler which is dependent on the user's config
Code:

getDefaultDisassembler().disassemble('cheatengine-x86_64-SSE4-AVX2.exe+3CC4')

_________________
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
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sun Mar 28, 2021 9:52 am    Post subject: Reply with quote

Thank, works. But it would be better to have an option to read opcodes with symbol even with custom disassembler
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Mar 28, 2021 10:55 am    Post subject: Reply with quote

the normal disassemble() command really shouldn't use symbolnames. There's too much that can go wrong

e.g:
Code:

call d32145cd0

vs
Code:

call bla.xxx`yyy+123


the first one will work fine when assembled. The 2nd one will error out

_________________
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
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sun Mar 28, 2021 7:29 pm    Post subject: Reply with quote

hmm.. yea dictionary letters are a problem in CE so far. But anyway I was talking about having an extra option to read opcode strings, not the replacement on existing one with it.
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