trunk/src/mame/drivers/8080bw.c
| r19424 | r19425 | |
| 643 | 643 | /* Preliminary emulation. PCB was working fine, but */ |
| 644 | 644 | /* it's not certain that this is a good dump */ |
| 645 | 645 | /* */ |
| 646 | /* Ports 41 and 48 output 0 at start, not used again */ |
| 647 | /* Sounds could be memory-mapped? */ |
| 648 | /* Seems to be no watchdog reset line */ |
| 649 | /* Diplocs need confirming */ |
| 650 | /* Couldn't confirm 2500 for extra life, game too hard*/ |
| 651 | /* Always in cocktail mode but flipscreen bit not found*/ |
| 652 | /* */ |
| 646 | 653 | /*******************************************************/ |
| 647 | 654 | |
| 648 | 655 | static INPUT_PORTS_START( spacecom ) |
| 649 | 656 | PORT_START("IN0") // 5-pos dipsw at ic79 (row F) - means 3 bits are for something else, which? |
| 650 | | PORT_DIPUNKNOWN( 0x01, 0x01 ) |
| 651 | | PORT_DIPUNKNOWN( 0x02, 0x02 ) |
| 652 | | PORT_DIPUNKNOWN( 0x04, 0x04 ) |
| 653 | | PORT_DIPUNKNOWN( 0x08, 0x08 ) |
| 654 | | PORT_DIPUNKNOWN( 0x10, 0x10 ) |
| 655 | | PORT_DIPUNKNOWN( 0x20, 0x20 ) |
| 656 | | PORT_DIPUNKNOWN( 0x40, 0x40 ) |
| 657 | | PORT_DIPUNKNOWN( 0x80, 0x80 ) |
| 657 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") |
| 658 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 659 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 660 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:2") |
| 661 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 662 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 663 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") |
| 664 | PORT_DIPSETTING( 0x00, "3" ) |
| 665 | PORT_DIPSETTING( 0x04, "5" ) |
| 666 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 667 | PORT_DIPSETTING( 0x00, "2500" ) // not confirmed |
| 668 | PORT_DIPSETTING( 0x08, "1500" ) |
| 669 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:5") |
| 670 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 671 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 672 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 673 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 674 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 658 | 675 | |
| 659 | 676 | PORT_START("IN1") |
| 660 | 677 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 661 | 678 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 662 | 679 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 663 | 680 | PORT_SERVICE( 0x08, IP_ACTIVE_HIGH ) |
| 664 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 665 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 666 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 667 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 681 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 682 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 683 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 684 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 668 | 685 | |
| 669 | 686 | PORT_START(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 670 | 687 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r19424 | r19425 | |
| 675 | 692 | AM_RANGE(0x41, 0x41) AM_READ_PORT("IN0") |
| 676 | 693 | AM_RANGE(0x42, 0x42) AM_READ_PORT("IN1") AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w) |
| 677 | 694 | AM_RANGE(0x44, 0x44) AM_DEVREAD_LEGACY("mb14241", mb14241_shift_result_r) AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_data_w) |
| 678 | | AM_RANGE(0x48, 0x48) AM_WRITE(watchdog_reset_w) |
| 695 | //AM_RANGE(0x48, 0x48) AM_WRITE(watchdog_reset_w) |
| 679 | 696 | ADDRESS_MAP_END |
| 680 | 697 | |
| 681 | 698 | MACHINE_CONFIG_DERIVED_CLASS( spacecom, invaders, _8080bw_state ) |
| r19424 | r19425 | |
| 683 | 700 | /* basic machine hardware */ |
| 684 | 701 | MCFG_CPU_MODIFY("maincpu") |
| 685 | 702 | MCFG_CPU_IO_MAP(spacecom_io_map) |
| 703 | MCFG_WATCHDOG_VBLANK_INIT(0) |
| 704 | MCFG_WATCHDOG_TIME_INIT(attotime::from_usec(0)) |
| 686 | 705 | MACHINE_CONFIG_END |
| 687 | 706 | |
| 688 | 707 | |
| r19424 | r19425 | |
| 2922 | 2941 | ROM_LOAD( "6g.ic84", 0x1400, 0x0400, CRC(de383625) SHA1(7ec0d7171e771c4b43e026f3f50a88d8ab2236bb) ) |
| 2923 | 2942 | ROM_LOAD( "7f.ic70", 0x1800, 0x0400, CRC(5a23dbc8) SHA1(4d193bb7b38fb7ccd57d2c72463a3fe123dbca58) ) |
| 2924 | 2943 | ROM_LOAD( "8g.ic85", 0x1c00, 0x0400, CRC(a5a467e3) SHA1(ef591059e55d21f14baa8af1f1324a9bc2ada8c4) ) |
| 2944 | ROM_FILL(0x10, 1, 0xF5) // fix bad byte |
| 2925 | 2945 | ROM_END |
| 2926 | 2946 | |
| 2927 | 2947 | ROM_START( sinvzen ) |