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

Function debug_safe_addr

src/debug.cpp:488–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488int debug_safe_addr (uaecptr addr, int size)
489{
490 if (debug_mmu_mode) {
491 flagtype olds = regs.s;
492 regs.s = (debug_mmu_mode & 4) != 0;
493 TRY(p) {
494 if (currprefs.mmu_model >= 68040)
495 addr = mmu_translate (addr, 0, regs.s != 0, (debug_mmu_mode & 1), false, size);
496 else
497 addr = mmu030_translate (addr, regs.s != 0, (debug_mmu_mode & 1), false);
498 } CATCH(p) {
499 STOPTRY;
500 return 0;
501 } ENDTRY
502 regs.s = olds;
503 }
504 addrbank *ab = &get_mem_bank (addr);
505 if (!ab)
506 return 0;
507 if (ab->flags & ABFLAG_SAFE)
508 return 1;
509 if (!ab->check (addr, size))
510 return 0;
511 if (ab->flags & (ABFLAG_RAM | ABFLAG_ROM | ABFLAG_ROMIN | ABFLAG_SAFE))
512 return 1;
513 return 0;
514}
515
516static bool iscancel (int counter)
517{

Callers 3

dumpmem2Function · 0.70
debug_backtraceFunction · 0.70
showea_valFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected