summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Jim Stolis <Stolistic@users.noreply.github.com>2009-11-20 04:38:07 +0000
committer Jim Stolis <Stolistic@users.noreply.github.com>2009-11-20 04:38:07 +0000
commit620a6cbe4b03e68a345a2f2903411af273818956 (patch)
treeefc1fe385e2aea2f3a968d1274c3baebbda39682
parent8b7f6436129cebaf4b619a2b46bdfda466b27341 (diff)
drw80pkr - more code cleanup, no additions to whatsnew here
-rw-r--r--src/mame/drivers/drw80pkr.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mame/drivers/drw80pkr.c b/src/mame/drivers/drw80pkr.c
index b1c91593df0..534f625ae7e 100644
--- a/src/mame/drivers/drw80pkr.c
+++ b/src/mame/drivers/drw80pkr.c
@@ -78,9 +78,7 @@ static WRITE8_HANDLER( prog_w )
// Bankswitch Program Memory
if (prog == 0x01)
{
- active_bank++;
- if (active_bank == 2)
- active_bank = 0;
+ active_bank = active_bank ^ 0x01;
memory_set_bank(space->machine, 1, active_bank);
}
@@ -99,15 +97,12 @@ static WRITE8_HANDLER( drw80pkr_io_w )
{
n_offs = ((p1 & 0xc0) << 2 ) + offset;
- color_ram[n_offs] = data & 0x0f;
-
if (p2 == 0x3f)
{
- video_ram[n_offs] = data;
- tilemap_mark_tile_dirty(bg_tilemap, n_offs);
+ video_ram[n_offs] = data; // low address
} else {
- if ((data & 0xf0) != 0x00)
- video_ram[n_offs] += ((data & 0xf0) << 4 );
+ color_ram[n_offs] = data & 0x0f; // color palette
+ video_ram[n_offs] += ((data & 0xf0) << 4 ); // high address
}
tilemap_mark_tile_dirty(bg_tilemap, n_offs);
@@ -223,7 +218,7 @@ static READ8_HANDLER( drw80pkr_io_r )
// play slightly with very messed up hold buttons etc.
//
// Open/Close the door with 'O'
- // Press '5' with door open to play credit
+ // Press '5' (twice) with door open to play credit
// Press '1' to draw/deal
//
case 0x0000: ret = 0x00; break;