diff options
Diffstat (limited to 'src/mame/drivers/alinvade.c')
-rw-r--r-- | src/mame/drivers/alinvade.c | 75 |
1 files changed, 60 insertions, 15 deletions
diff --git a/src/mame/drivers/alinvade.c b/src/mame/drivers/alinvade.c index 513d48d0b57..5ad87f8e9fb 100644 --- a/src/mame/drivers/alinvade.c +++ b/src/mame/drivers/alinvade.c @@ -29,22 +29,64 @@ public: static ADDRESS_MAP_START( alinvade_map, AS_PROGRAM, 8, alinvade_state ) - AM_RANGE(0x0000, 0x01ff) AM_RAM - AM_RANGE(0x0400, 0x0bff) AM_RAM AM_SHARE("videoram") - - AM_RANGE(0xe000, 0xe3ff) AM_ROM - AM_RANGE(0xe800, 0xebff) AM_RAM - AM_RANGE(0xec00, 0xffff) AM_ROM - - + AM_RANGE(0x0000, 0x01ff) AM_RAM + AM_RANGE(0x0400, 0x0bff) AM_RAM AM_SHARE("videoram") + AM_RANGE(0x2000, 0x2000) AM_WRITENOP //?? + AM_RANGE(0x4000, 0x4000) AM_READ_PORT("COIN") + AM_RANGE(0x6000, 0x6000) AM_READ_PORT("DSW") + AM_RANGE(0x8000, 0x8000) AM_READ_PORT("IN0") + AM_RANGE(0x8001, 0x8001) AM_READ_PORT("IN1") + AM_RANGE(0x8002, 0x8002) AM_READ_PORT("IN2") + AM_RANGE(0x8003, 0x8003) AM_READ_PORT("IN3") + AM_RANGE(0x8004, 0x8004) AM_READ_PORT("IN4") + AM_RANGE(0xa000, 0xa000) AM_WRITENOP //?? + AM_RANGE(0xc400, 0xc7ff) AM_ROM + AM_RANGE(0xc800, 0xcbff) AM_ROM + AM_RANGE(0xe000, 0xe3ff) AM_ROM + AM_RANGE(0xe400, 0xe400) AM_WRITENOP //?? + AM_RANGE(0xe800, 0xe800) AM_READNOP AM_WRITENOP //?? + AM_RANGE(0xec00, 0xffff) AM_ROM ADDRESS_MAP_END static INPUT_PORTS_START( alinvade ) + PORT_START("COIN") + PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT(0xef, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN0") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) + PORT_BIT(0xdf, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + + PORT_START("IN1") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) + PORT_BIT(0xdf, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + + PORT_START("IN2") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) + PORT_BIT(0xdf, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + + PORT_START("IN3") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_START1 ) + PORT_BIT(0xdf, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + + PORT_START("IN4") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_START2 ) + PORT_BIT(0xdf, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + + PORT_START("DSW") + PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) + PORT_DIPSETTING( 0x00, "2" ) + PORT_DIPSETTING( 0x01, "3" ) + PORT_DIPSETTING( 0x02, "4" ) + PORT_DIPSETTING( 0x03, "5" ) + PORT_DIPNAME( 0x04, 0x00, DEF_STR ( Unknown ) ) // read, but not tested afterwards? + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x04, DEF_STR( On ) ) + PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) INPUT_PORTS_END - void alinvade_state::machine_start() { } @@ -103,12 +145,15 @@ MACHINE_CONFIG_END ROM_START( alinvade ) ROM_REGION( 0x10000, "maincpu", 0 ) // todo, check mapping - ROM_LOAD( "alien28.708", 0xe000, 0x0400, CRC(de376295) SHA1(e8eddbb1be1f8661c6b5b39c0d78a65bded65db2) ) - ROM_LOAD( "alien29.708", 0xec00, 0x0400, CRC(20212977) SHA1(9d24a6b403d968267079fa6241545bd5a01afebb) ) - ROM_LOAD( "alien30.708", 0xf000, 0x0400, CRC(734b691c) SHA1(9e562159061eecf4b1dee4ea0ee4752c901a54aa) ) - ROM_LOAD( "alien31.708", 0xf400, 0x0400, CRC(5a70535c) SHA1(2827e7d4bffca78bd035da04481e1e972ee2da39) ) - ROM_LOAD( "alien32.708", 0xf800, 0x0400, CRC(332dd234) SHA1(9974668344a2a351868a9e7757d1c3a497dc5621) ) - ROM_LOAD( "alien33.708", 0xfc00, 0x0400, CRC(e0d57fc7) SHA1(7b8ddcb4a86811592d2d0bbc61b2f19e5caa9ccc) ) + + ROM_FILL( 0xc400, 0x800, 0x60 ) // rts for whole area, interrupt code jumps to various addresses here + + ROM_LOAD( "alien28.708", 0xe000, 0x0400, CRC(de376295) SHA1(e8eddbb1be1f8661c6b5b39c0d78a65bded65db2) ) + ROM_LOAD( "alien29.708", 0xec00, 0x0400, CRC(20212977) SHA1(9d24a6b403d968267079fa6241545bd5a01afebb) ) + ROM_LOAD( "alien30.708", 0xf000, 0x0400, CRC(734b691c) SHA1(9e562159061eecf4b1dee4ea0ee4752c901a54aa) ) + ROM_LOAD( "alien31.708", 0xf400, 0x0400, CRC(5a70535c) SHA1(2827e7d4bffca78bd035da04481e1e972ee2da39) ) + ROM_LOAD( "alien32.708", 0xf800, 0x0400, CRC(332dd234) SHA1(9974668344a2a351868a9e7757d1c3a497dc5621) ) + ROM_LOAD( "alien33.708", 0xfc00, 0x0400, CRC(e0d57fc7) SHA1(7b8ddcb4a86811592d2d0bbc61b2f19e5caa9ccc) ) ROM_END |