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

Function debug_mem_off

src/debug.cpp:4010–4030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4008}
4009
4010static int debug_mem_off (uaecptr *addrp)
4011{
4012 uaecptr addr = *addrp;
4013 addrbank *ba;
4014 int offset = munge24 (addr) >> 16;
4015 if (!debug_mem_banks)
4016 return offset;
4017 ba = debug_mem_banks[offset];
4018 if (!ba)
4019 return offset;
4020 if (ba->mask || ba->startmask) {
4021 uae_u32 start = ba->startmask ? ba->startmask : ba->start;
4022 addr -= start;
4023 if (ba->mask) {
4024 addr &= ba->mask;
4025 }
4026 addr += start;
4027 }
4028 *addrp = addr;
4029 return offset;
4030}
4031
4032struct smc_item {
4033 uae_u32 addr;

Callers 11

REGPARAM2Function · 0.85
mmu_lgetiFunction · 0.85
mmu_wgetiFunction · 0.85
debug_lgetFunction · 0.85
debug_wgetFunction · 0.85
debug_bgetFunction · 0.85
debug_lgetiFunction · 0.85
debug_wgetiFunction · 0.85
debug_lputFunction · 0.85
debug_wputFunction · 0.85
debug_bputFunction · 0.85

Calls 1

munge24Function · 0.85

Tested by

no test coverage detected