summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2018-01-20 20:27:40 -0500
committer arbee <rb6502@users.noreply.github.com>2018-01-20 20:27:40 -0500
commit115b7b15a85510ec6714763b67a92cc87c85ca1e (patch)
tree7c072c618cd1ccec2082906bc3f2f33de4241e33
parentd6c7382ac33c6d9e6e89b4eb2e9077adefaba438 (diff)
konmedal: hooked up I/O ports to shuriboy [R. Belmont]
-rw-r--r--src/mame/drivers/konmedal.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mame/drivers/konmedal.cpp b/src/mame/drivers/konmedal.cpp
index c3f7bc9d615..e09fbb8cb11 100644
--- a/src/mame/drivers/konmedal.cpp
+++ b/src/mame/drivers/konmedal.cpp
@@ -21,6 +21,12 @@ Konami Custom chips:
054156 (tilemaps)
054157 (tilemaps)
+ Shuriken Boy
+
+Konami Custom chips:
+K052109 (tilemaps)
+K051649 (sound)
+
***************************************************************************/
#include "emu.h"
@@ -260,6 +266,10 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( shuriboy_main, AS_PROGRAM, 8, konmedal_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM AM_REGION("maincpu", 0)
AM_RANGE(0x8000, 0x87ff) AM_RAM
+ AM_RANGE(0x8800, 0x8800) AM_READ_PORT("IN2")
+ AM_RANGE(0x8801, 0x8801) AM_READ_PORT("IN1")
+ AM_RANGE(0x8802, 0x8802) AM_READ_PORT("DSW1")
+ AM_RANGE(0x8803, 0x8803) AM_READ_PORT("DSW2")
AM_RANGE(0x8b00, 0x8b00) AM_WRITENOP // watchdog?
AM_RANGE(0x8c00, 0x8c00) AM_WRITE(shuri_bank_w)
AM_RANGE(0x9800, 0x987f) AM_DEVREADWRITE("k051649", k051649_device, k051649_waveform_r, k051649_waveform_w)
@@ -331,7 +341,7 @@ static INPUT_PORTS_START( konmedal )
PORT_DIPSETTING( 0x10, "24 sec" )
PORT_DIPSETTING( 0x20, "18 sec" )
PORT_DIPSETTING( 0x30, "12 sec" )
- PORT_DIPNAME( 0x40, 0x40, "Backup Memory" ) PORT_DIPLOCATION("SW2:7")
+ PORT_DIPNAME( 0x40, 0x00, "Backup Memory" ) PORT_DIPLOCATION("SW2:7")
PORT_DIPSETTING( 0x40, "Keep" )
PORT_DIPSETTING( 0x00, "Clear" )
PORT_DIPNAME( 0x80, 0x00, "Demo Sound" ) PORT_DIPLOCATION("SW2:8")
@@ -454,13 +464,11 @@ Dips: 2 x 8 dips bank
K052109_CB_MEMBER(konmedal_state::shuriboy_tile_callback)
{
- *code |= ((*color & 0x03) << 8) | ((*color & 0x10) << 6) | ((*color & 0x0c) << 9) | (bank << 13);
-// *color = m_layer_colorbase[layer] + ((*color & 0xe0) >> 5);
+ *code |= ((*color & 0x03) << 8) | (*color & 0x40);
}
WRITE8_MEMBER(konmedal_state::shuri_bank_w)
{
- //printf("ROM bank %x (full %02x)\n", data>>4, data);
membank("bank1")->set_entry(data&0x3);
}