MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Dump_DisassembleMIPSRange

Function Dump_DisassembleMIPSRange

Source/Debug/Dump.cpp:121–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119//
120//*****************************************************************************
121void Dump_DisassembleMIPSRange(FILE * fh, u32 address_offset, const OpCode * b, const OpCode * e)
122{
123 u32 address( address_offset );
124 const OpCode * p( b );
125 while( p < e )
126 {
127 char opinfo[400];
128
129 OpCode op( GetCorrectOp( *p ) );
130#if 0
131 if (translate_patches)
132 {
133 ///TODO: We need a way to know this
134 if (IsJumpTarget( op ))
135 {
136 fprintf(fp, "\n");
137 fprintf(fp, "\n");
138 fprintf(fp, "// %s():\n", Patch_GetJumpAddressName(current_pc));
139 }
140 }
141#endif
142
143 SprintOpCodeInfo( opinfo, address, op );
144 fprintf(fh, "0x%08x: <0x%08x> %s\n", address, op._u32, opinfo);
145
146 address += 4;
147 ++p;
148 }
149}
150
151void Dump_Disassemble(u32 start, u32 end, const char * p_file_name)
152{

Callers 1

Dump_DisassembleFunction · 0.85

Calls 3

GetCorrectOpFunction · 0.85
Patch_GetJumpAddressNameFunction · 0.85
SprintOpCodeInfoFunction · 0.85

Tested by

no test coverage detected