mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-25 19:33:05 +00:00
debugger: PPC disassembler uses MMU instruction path.
This commit is contained in:
parent
68b8da2182
commit
0cc1ac5731
@ -30,6 +30,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include "../cpu/ppc/ppcdisasm.h"
|
#include "../cpu/ppc/ppcdisasm.h"
|
||||||
#include "../cpu/ppc/ppcemu.h"
|
#include "../cpu/ppc/ppcemu.h"
|
||||||
#include "../cpu/ppc/ppcmmu.h"
|
#include "../cpu/ppc/ppcmmu.h"
|
||||||
|
#include "memreadwrite.h"
|
||||||
|
|
||||||
#ifdef ENABLE_68K_DEBUGGER // optionally defined in CMakeLists.txt
|
#ifdef ENABLE_68K_DEBUGGER // optionally defined in CMakeLists.txt
|
||||||
#include <capstone/capstone.h>
|
#include <capstone/capstone.h>
|
||||||
@ -322,7 +323,7 @@ static void disasm(uint32_t count, uint32_t address) {
|
|||||||
ctx.simplified = true;
|
ctx.simplified = true;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
ctx.instr_code = mem_read_dbg(ctx.instr_addr, 4);
|
ctx.instr_code = READ_DWORD_BE_A(quickinstruction_translate(ctx.instr_addr));
|
||||||
cout << uppercase << hex << ctx.instr_addr;
|
cout << uppercase << hex << ctx.instr_addr;
|
||||||
cout << " " << disassemble_single(&ctx) << endl;
|
cout << " " << disassemble_single(&ctx) << endl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user