mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
unkitpkr: Minor update (nw)
This commit is contained in:
parent
4a92d8bab0
commit
81adfddb59
@ -209,9 +209,11 @@ static ADDRESS_MAP_START( unkitpkr_map, AS_PROGRAM, 8, wallc_state )
|
||||
AM_RANGE(0x8000, 0x83ff) AM_RAM_WRITE(videoram_w) AM_MIRROR(0xc00) AM_SHARE("videoram") /* 2114, 2114 */
|
||||
AM_RANGE(0xa000, 0xa3ff) AM_RAM /* 2114, 2114 */
|
||||
|
||||
AM_RANGE(0xb100, 0xb100) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0xb200, 0xb200) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0xb300, 0xb300) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0xb000, 0xb000) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0xb100, 0xb100) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0xb200, 0xb200) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0xb300, 0xb300) AM_READ_PORT("IN2")
|
||||
AM_RANGE(0xb500, 0xb5ff) AM_READNOP // read by memory test routine left over from some other game
|
||||
AM_RANGE(0xb600, 0xb600) AM_READ_PORT("DSW")
|
||||
|
||||
AM_RANGE(0xb000, 0xb000) AM_WRITENOP
|
||||
@ -279,7 +281,17 @@ static INPUT_PORTS_START( wallc )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( unkitpkr )
|
||||
PORT_START("SYSTEM") /* b100 */
|
||||
PORT_START("SYSTEM") /* b000 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN0") /* b100 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MEMORY_RESET ) // coin clear?
|
||||
@ -289,7 +301,7 @@ static INPUT_PORTS_START( unkitpkr )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 )
|
||||
|
||||
PORT_START("IN0") /* b200 */
|
||||
PORT_START("IN1") /* b200 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -299,7 +311,7 @@ static INPUT_PORTS_START( unkitpkr )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
|
||||
|
||||
PORT_START("IN1") /* b300 */
|
||||
PORT_START("IN2") /* b300 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_CANCEL )
|
||||
@ -590,7 +602,7 @@ ROM_END
|
||||
|
||||
DRIVER_INIT_MEMBER(wallc_state, unkitpkr)
|
||||
{
|
||||
// annoying line swapping
|
||||
// line swapping is too annoying to handle with ROM_LOAD macros
|
||||
uint8_t buffer[0x400];
|
||||
for (int b = 0; b < 0x3000; b += 0x400)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user