mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
comment fixes and variable name clarify (n/w)
This commit is contained in:
parent
29663a2bad
commit
9d45c72a63
@ -799,7 +799,7 @@ static ADDRESS_MAP_START( arkanoid_map, AS_PROGRAM, 8, arkanoid_state )
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_RAM
|
||||
AM_RANGE(0xd000, 0xd001) AM_DEVWRITE("aysnd", ay8910_device, address_data_w)
|
||||
AM_RANGE(0xd001, 0xd001) AM_DEVREAD("aysnd", ay8910_device, data_r)
|
||||
AM_RANGE(0xd008, 0xd008) AM_WRITE(arkanoid_d008_w) /* gfx bank, flip screen etc. */
|
||||
AM_RANGE(0xd008, 0xd008) AM_WRITE(arkanoid_d008_w) /* gfx bank, flip screen, 68705 reset, etc. */
|
||||
AM_RANGE(0xd00c, 0xd00c) AM_READ_PORT("SYSTEM") /* 2 bits from the 68705 */
|
||||
AM_RANGE(0xd010, 0xd010) AM_READ_PORT("BUTTONS") AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
|
||||
AM_RANGE(0xd018, 0xd018) AM_READWRITE(arkanoid_Z80_mcu_r, arkanoid_Z80_mcu_w) /* input from the 68705 */
|
||||
|
@ -125,20 +125,20 @@ TIMER_CALLBACK_MEMBER(arkanoid_state::timer_68705_increment)
|
||||
|
||||
READ8_MEMBER(arkanoid_state::arkanoid_68705_port_c_r)
|
||||
{
|
||||
int res = 0;
|
||||
int port_c_in = 0;
|
||||
|
||||
/* bit 0 is latch 1 on ic26, is high if m_Z80HasWritten(latch 1) is set */
|
||||
if (m_Z80HasWritten)
|
||||
res |= 0x01;
|
||||
port_c_in |= 0x01;
|
||||
|
||||
/* bit 1 is the negative output of latch 2 on ic26, is high if m_68705write is clear */
|
||||
if (!m_MCUHasWritten)
|
||||
res |= 0x02;
|
||||
port_c_in |= 0x02;
|
||||
|
||||
/* bit 2 is an output, to clear latch 1, return whatever state it was set to in m_port_c_out */
|
||||
/* bit 3 is an output, to set latch 2, return whatever state it was set to in m_port_c_out */
|
||||
|
||||
return (m_port_c_internal & m_ddr_c) | (res & ~m_ddr_c);
|
||||
return (m_port_c_internal & m_ddr_c) | (port_c_in & ~m_ddr_c);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(arkanoid_state::arkanoid_68705_port_c_w)
|
||||
|
Loading…
Reference in New Issue
Block a user