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

Function debug_get_prefetch

src/debug.cpp:9399–9426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9397}
9398
9399bool debug_get_prefetch(int idx, uae_u16 *opword)
9400{
9401 if (currprefs.cpu_compatible) {
9402 if (currprefs.cpu_model < 68020) {
9403 if (idx == 0) {
9404 *opword = regs.ir;
9405 return true;
9406 }
9407 if (idx == 1) {
9408 *opword = regs.irc;
9409 return true;
9410 }
9411 *opword = get_word_debug(m68k_getpc() + idx * 2);
9412 return false;
9413 } else {
9414 if (regs.prefetch020_valid[idx]) {
9415 *opword = regs.prefetch020[idx];
9416 return true;
9417 }
9418 *opword = get_word_debug(m68k_getpc() + idx * 2);
9419 return false;
9420 }
9421
9422 } else {
9423 *opword = get_word_debug(m68k_getpc() + idx * 2);
9424 return false;
9425 }
9426}
9427
9428#define DEBUGSPRINTF_SIZE 32
9429static int debugsprintf_cnt;

Callers 2

debugFunction · 0.85
m68k_dumpstateFunction · 0.85

Calls 2

m68k_getpcFunction · 0.85
get_word_debugFunction · 0.70

Tested by

no test coverage detected