Add mapper 586.

This commit is contained in:
NewRisingSun
2025-09-08 16:54:21 +02:00
parent 03c7199a42
commit 8b2d37d8c7
4 changed files with 41 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ static SFORMAT Latch_state[] = {
DECLFW(Latch_write) {
uint16 newAddress = A &0xFFFF;
if (Latch_cbWrite) Latch_cbWrite(&newAddress, &V, CartBR(A));
Latch_address = A;
Latch_address = newAddress;
Latch_data = V;
Latch_cbSync();
}
@@ -48,6 +48,7 @@ static void Latch_clear () {
}
static void Latch_setHandlers() {
SetReadHandler(0x8000, 0xFFFF, CartBR);
SetWriteHandler(Latch_from, Latch_to, Latch_write);
}