From d8a776ddd522bde676e7022f4d10aa23f48050d7 Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Fri, 11 May 2012 11:18:22 +0000 Subject: [PATCH] Played through wofb, adding support for new priority mode writes --- src/burn/drv/capcom/d_cps1.cpp | 42 +++++++++++++++------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/src/burn/drv/capcom/d_cps1.cpp b/src/burn/drv/capcom/d_cps1.cpp index a31387568..e04268dde 100644 --- a/src/burn/drv/capcom/d_cps1.cpp +++ b/src/burn/drv/capcom/d_cps1.cpp @@ -13360,30 +13360,12 @@ void __fastcall Wofb98WriteWord(UINT32 a, UINT16 d) case 0x98000c: { switch (d) { - case 0x00: { - nCps1Layers[0] = 1; - nCps1Layers[1] = 0; - nCps1Layers[2] = 2; - nCps1Layers[3] = 3; - break; - } - - case 0x01: { - nCps1Layers[0] = 1; - nCps1Layers[1] = 0; - nCps1Layers[2] = 3; - nCps1Layers[3] = 2; - break; - } - - case 0x03: { - nCps1Layers[0] = 1; - nCps1Layers[1] = 3; - nCps1Layers[2] = 0; - nCps1Layers[3] = 2; - break; - } - + case 0x00: + case 0x04: + case 0x06: + case 0x08: + case 0x0a: + case 0x0b: case 0x0e: { nCps1Layers[0] = 1; nCps1Layers[1] = 0; @@ -13392,6 +13374,8 @@ void __fastcall Wofb98WriteWord(UINT32 a, UINT16 d) break; } + case 0x01: + case 0x05: case 0x0f: { nCps1Layers[0] = 1; nCps1Layers[1] = 0; @@ -13400,6 +13384,16 @@ void __fastcall Wofb98WriteWord(UINT32 a, UINT16 d) break; } + case 0x03: + case 0x07: + case 0x09: { + nCps1Layers[0] = 1; + nCps1Layers[1] = 3; + nCps1Layers[2] = 0; + nCps1Layers[3] = 2; + break; + } + default: { nCps1Layers[0] = 1; nCps1Layers[1] = 0;