MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ppc_disasm

Function ppc_disasm

src/debug.cpp:7228–7248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7226}
7227
7228static void ppc_disasm(uaecptr addr, uaecptr *nextpc, int cnt)
7229{
7230#ifdef WITH_PPC
7231 PPCD_CB disa;
7232
7233 while(cnt-- > 0) {
7234 uae_u32 instr = get_long_debug(addr);
7235 disa.pc = addr;
7236 disa.instr = instr;
7237 PPCDisasm(&disa);
7238 TCHAR *mnemo = au(disa.mnemonic);
7239 TCHAR *ops = au(disa.operands);
7240 console_out_f(_T("%08X %08X %-12s%-30s\n"), addr, instr, mnemo, ops);
7241 xfree(ops);
7242 xfree(mnemo);
7243 addr += 4;
7244 }
7245 if (nextpc)
7246 *nextpc = addr;
7247#endif
7248}
7249
7250static void dma_disasm(int frames, int vp, int hp, int frames_end, int vp_end, int hp_end)
7251{

Callers 1

debug_lineFunction · 0.85

Calls 4

PPCDisasmFunction · 0.85
auFunction · 0.85
get_long_debugFunction · 0.70
console_out_fFunction · 0.50

Tested by

no test coverage detected