Fix execute breaks on bus and IOAMHRAM
This commit is contained in:
parent
9e0586e594
commit
9e0bab46d1
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ public:
|
||||||
if(memblock) {
|
if(memblock) {
|
||||||
if(p >= 0xFE00) { //IOAMHRAM.
|
if(p >= 0xFE00) { //IOAMHRAM.
|
||||||
if(__builtin_expect(dbg->ioamhram[p - 0xFE00] & mask, 0))
|
if(__builtin_expect(dbg->ioamhram[p - 0xFE00] & mask, 0))
|
||||||
dbg->read(2, 0x100 + p, v, false);
|
dbg->read(2, 0x100 + p, v, exec);
|
||||||
} else {
|
} else {
|
||||||
const uint8_t* addr = memblock + p;
|
const uint8_t* addr = memblock + p;
|
||||||
static void* targets[8] = {&&cart, &&cart, &&cart, &&cart, &&out, &&sram, &&wram,
|
static void* targets[8] = {&&cart, &&cart, &&cart, &&cart, &&out, &&sram, &&wram,
|
||||||
|
@ -137,7 +137,7 @@ cart:
|
||||||
out: ;
|
out: ;
|
||||||
}
|
}
|
||||||
if(__builtin_expect(dbg->bus[p] & mask, 0))
|
if(__builtin_expect(dbg->bus[p] & mask, 0))
|
||||||
dbg->read(0, p, v, false);
|
dbg->read(0, p, v, exec);
|
||||||
return v2;
|
return v2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue