mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
drw80pkr - more code cleanup, no additions to whatsnew here
This commit is contained in:
parent
8b7f643612
commit
620a6cbe4b
@ -78,9 +78,7 @@ static WRITE8_HANDLER( prog_w )
|
|||||||
// Bankswitch Program Memory
|
// Bankswitch Program Memory
|
||||||
if (prog == 0x01)
|
if (prog == 0x01)
|
||||||
{
|
{
|
||||||
active_bank++;
|
active_bank = active_bank ^ 0x01;
|
||||||
if (active_bank == 2)
|
|
||||||
active_bank = 0;
|
|
||||||
|
|
||||||
memory_set_bank(space->machine, 1, active_bank);
|
memory_set_bank(space->machine, 1, active_bank);
|
||||||
}
|
}
|
||||||
@ -99,15 +97,12 @@ static WRITE8_HANDLER( drw80pkr_io_w )
|
|||||||
{
|
{
|
||||||
n_offs = ((p1 & 0xc0) << 2 ) + offset;
|
n_offs = ((p1 & 0xc0) << 2 ) + offset;
|
||||||
|
|
||||||
color_ram[n_offs] = data & 0x0f;
|
|
||||||
|
|
||||||
if (p2 == 0x3f)
|
if (p2 == 0x3f)
|
||||||
{
|
{
|
||||||
video_ram[n_offs] = data;
|
video_ram[n_offs] = data; // low address
|
||||||
tilemap_mark_tile_dirty(bg_tilemap, n_offs);
|
|
||||||
} else {
|
} else {
|
||||||
if ((data & 0xf0) != 0x00)
|
color_ram[n_offs] = data & 0x0f; // color palette
|
||||||
video_ram[n_offs] += ((data & 0xf0) << 4 );
|
video_ram[n_offs] += ((data & 0xf0) << 4 ); // high address
|
||||||
}
|
}
|
||||||
|
|
||||||
tilemap_mark_tile_dirty(bg_tilemap, n_offs);
|
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.
|
// play slightly with very messed up hold buttons etc.
|
||||||
//
|
//
|
||||||
// Open/Close the door with 'O'
|
// 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
|
// Press '1' to draw/deal
|
||||||
//
|
//
|
||||||
case 0x0000: ret = 0x00; break;
|
case 0x0000: ret = 0x00; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user