| 119 | // |
| 120 | //***************************************************************************** |
| 121 | void 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 | |
| 151 | void Dump_Disassemble(u32 start, u32 end, const char * p_file_name) |
| 152 | { |
no test coverage detected