summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2010-06-16 00:07:36 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2010-06-16 00:07:36 +0000
commit5ebfa2f586f49a3ba6c6b83c5d36adb4d071f44b (patch)
tree3c00e613c6dc7c78b2b4ddaf13e14b169a5e5e83
parente70c046a39e5e76bb4ec864149cba0885c2c14bf (diff)
Implemented color banking
-rw-r--r--src/mame/drivers/pinkiri8.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mame/drivers/pinkiri8.c b/src/mame/drivers/pinkiri8.c
index 777dd8d81e4..e74de38e66c 100644
--- a/src/mame/drivers/pinkiri8.c
+++ b/src/mame/drivers/pinkiri8.c
@@ -47,8 +47,13 @@ static VIDEO_UPDATE( pinkiri8 )
{
static UINT8 *vram1 = memory_region(screen->machine, "vram")+0x12000;
static UINT8 *vram2 = memory_region(screen->machine, "vram")+0x13800;
+ static UINT8 *crtc_regs = memory_region(screen->machine, "vram")+0x6000;
+ static int col_bank;
const gfx_element *gfx = screen->machine->gfx[0];
+ //popmessage("%02x",crtc_regs[0x0a]);
+ col_bank = (crtc_regs[0x0a] & 0x40) >> 6;
+
bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine));
{
@@ -81,7 +86,7 @@ static VIDEO_UPDATE( pinkiri8 )
y = (vram2[(i*2)+0]);
y = 0xff-y;
- // FIXME: ron jan and janshi both needs col bit 5 tied to somewhere on the title screen ...
+ col|= col_bank<<5;
//if (vram1[(i*4)+3] & 0x01)
// if (unk & 0x80)