From 345b4e6139b393c0247f43823ed39bf2c545c44e Mon Sep 17 00:00:00 2001 From: CaH4e3 Date: Mon, 18 Dec 2017 18:42:15 +0000 Subject: [PATCH] Mapper 036 - update with mirroring command used by 4-in-1 MGC-026 (not break other game though) --- trunk/src/boards/01-222.cpp | 2 ++ trunk/src/boards/36.cpp | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/trunk/src/boards/01-222.cpp b/trunk/src/boards/01-222.cpp index 64d2c960..414d62db 100644 --- a/trunk/src/boards/01-222.cpp +++ b/trunk/src/boards/01-222.cpp @@ -19,6 +19,7 @@ * * TXC mappers, originally much complex banksitching * + * P/N PRG MAP, UNIF Name * 01-22111-000 (05-00002-010) (132, 22211) - MGC-001 Qi Wang * 01-22110-000 (52S ) - MGC-002 2-in-1 Gun * 01-22111-100 (02-00002-010) (173 ) - MGC-008 Mahjong Block @@ -27,6 +28,7 @@ * 01-22000-400 (05-00002-010) (036 ) - MGC-015 Policeman * 01-22017-000 (05-PT017-080) (189 ) - MGC-017 Thunder Warrior * 01-11160-000 (04-02310-000) ( , 11160) - MGC-023 6-in-1 + * 01-22026-000 (05-04010-090) ( ) - MGC-026 4-in-1 * 01-22270-000 (05-00002-010) (132, 22211) - MGC-xxx Creatom * 01-22200-400 (------------) (079 ) - ET.03 F-15 City War * (172 ) - 1991 Du Ma Racing diff --git a/trunk/src/boards/36.cpp b/trunk/src/boards/36.cpp index 209d777e..dea977eb 100644 --- a/trunk/src/boards/36.cpp +++ b/trunk/src/boards/36.cpp @@ -22,11 +22,12 @@ #include "mapinc.h" -static uint8 latche; +static uint8 latche, mirr; static SFORMAT StateRegs[] = { { &latche, 1, "LATC" }, + { &mirr, 1, "MIRR" }, { 0 } }; @@ -36,6 +37,11 @@ static void Sync(void) { } static DECLFW(M36Write) { + + switch((A>>12)&7) { // need to 4-in-1 MGC-26 BMC, doesnt break other games though + case 0: mirr = MI_V; setmirror(mirr); break; + case 4: mirr = MI_H; setmirror(mirr); break; + } latche = V; Sync(); }