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 


Getting Opcode from address(?)

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

Joined: 06 Oct 2018
Posts: 2

PostPosted: Sat Oct 06, 2018 6:16 pm    Post subject: Getting Opcode from address(?) Reply with quote

Hi there i wanted to create a simple AoBUpdater
Is there any function or stuff which would enable me to take in an address and it throws out the opcode for the specific address in a string?
For example,
00321001-mov esi, [033494FD]

If i do GetOpcode(00321001) it would return me mov esi, [033494FD].
Thanks for all the help Very Happy
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Oct 06, 2018 6:28 pm    Post subject: Reply with quote

There's "disassemble" but it returns more than just the ASM.
Code:
disassemble(0x015FD30B)

Output:
Code:
015FD30B - 8D BD 80FCFFFF  - lea edi,[ebp-00000380]

https://wiki.cheatengine.org/index.php?title=Lua:disassemble

But there's also "splitDisassembledString".
https://wiki.cheatengine.org/index.php?title=Lua:splitDisassembledString
Code:
local addr = getAddress('Tutorial-x86_64.exe+164A7')
local disassStr = disassemble(addr)
local extraField, opcode, bytes, address = splitDisassembledString(disassStr)

_________________
Back to top
View user's profile Send private message Visit poster's website
Pizzamonster
How do I cheat?
Reputation: 0

Joined: 06 Oct 2018
Posts: 2

PostPosted: Sun Oct 07, 2018 7:30 pm    Post subject: Reply with quote

Thanks that sounds exactly what i wanted <3
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 Lua Scripting 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