| crabshank How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 28 Sep 2022
 Posts: 3
 
 
 | 
			
				|  Posted: Wed Sep 28, 2022 5:10 am    Post subject: Disassembler mnemonics |   |  
				| 
 |  
				| 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.
 |  |