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 


Disassembler mnemonics

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

Joined: 28 Sep 2022
Posts: 3

PostPosted: Wed Sep 28, 2022 5:10 am    Post subject: Disassembler mnemonics Reply with quote

Simple lua function to display the mnemonics for each opcode the the "Comments" column of the disassembler (paste .lua file in autorun folder).

Code:
-- Disassembler mnemonics - crabshank

local function displayMnemonics()
  local visDis = getVisibleDisassembler()

  function f(sender, address, LastDisassembleData, result, description)
    if not sender.syntaxHighlighting then return end
   local s=string.match(getComment(LastDisassembleData.address),".*%s*〈" )
   if s ==nil then
      s="〈"
   end
   setComment(LastDisassembleData.address,s .. LastDisassembleData.description .. '〉 %s' )
    return result,description
  end

  visDis.OnPostDisassemble = f

end

displayMnemonics()


Place your comments before the "〈...〉".

Also in my Github (crabshank/Cheat-engine-tools) along with a .cetrace reader web page.
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 Extensions 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