Added mapper 486.

This commit is contained in:
NewRisingSun
2025-04-25 21:23:25 +02:00
committed by LibretroAdmin
parent 215d189638
commit 32173736f0
3 changed files with 22 additions and 0 deletions

View File

@@ -76,3 +76,23 @@ void Mapper206_Init(CartInfo *info) {
GameStateRestore = StateRestore;
AddExState(&StateRegs, ~0, 0, 0);
}
static DECLFW(M486Write) {
DRegs[A &7] =(A &7) <2? (V >>1): V;
Sync();
}
static void M486Power(void) {
cmd = 0;
DRegs[6] = 0;
DRegs[7] = 1;
Sync();
SetReadHandler(0x8000, 0xFFFF, CartBR);
SetWriteHandler(0x8000, 0x9FFF, M486Write);
}
void Mapper486_Init(CartInfo *info) {
info->Power = M486Power;
GameStateRestore = StateRestore;
AddExState(&StateRegs, ~0, 0, 0);
}