| View previous topic :: View next topic |
| Author |
Message |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sun Mar 28, 2021 4:10 am Post subject: Get Opcodes with symbol names instead of just numbers |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Sun Mar 28, 2021 4:58 am Post subject: |
|
|
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sun Mar 28, 2021 9:52 am Post subject: |
|
|
| Thank, works. But it would be better to have an option to read opcodes with symbol even with custom disassembler
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Sun Mar 28, 2021 10:55 am Post subject: |
|
|
the normal disassemble() command really shouldn't use symbolnames. There's too much that can go wrong
e.g:
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sun Mar 28, 2021 7:29 pm Post subject: |
|
|
| 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 |
|
 |
|