summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/a2thunderclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/a2thunderclock.c')
-rw-r--r--src/mess/machine/a2thunderclock.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/mess/machine/a2thunderclock.c b/src/mess/machine/a2thunderclock.c
index ad7e81305fc..21eff9d5768 100644
--- a/src/mess/machine/a2thunderclock.c
+++ b/src/mess/machine/a2thunderclock.c
@@ -45,12 +45,12 @@ static UPD1990A_INTERFACE( thunderclock_upd1990a_intf )
};
MACHINE_CONFIG_FRAGMENT( thunderclock )
- MCFG_UPD1990A_ADD(THUNDERCLOCK_UPD1990_TAG, 1021800, thunderclock_upd1990a_intf)
+ MCFG_UPD1990A_ADD(THUNDERCLOCK_UPD1990_TAG, 1021800, thunderclock_upd1990a_intf)
MACHINE_CONFIG_END
ROM_START( thunderclock )
ROM_REGION(0x800, THUNDERCLOCK_ROM_REGION, 0)
- ROM_LOAD( "thunderclock plus rom.bin", 0x0000, 0x0800, CRC(1b99c4e3) SHA1(60f434f5325899d7ea257a6e56e6f53eae65146a) )
+ ROM_LOAD( "thunderclock plus rom.bin", 0x0000, 0x0800, CRC(1b99c4e3) SHA1(60f434f5325899d7ea257a6e56e6f53eae65146a) )
ROM_END
/***************************************************************************
@@ -81,17 +81,17 @@ const rom_entry *a2bus_thunderclock_device::device_rom_region() const
//**************************************************************************
a2bus_thunderclock_device::a2bus_thunderclock_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) :
- device_t(mconfig, type, name, tag, owner, clock),
- device_a2bus_card_interface(mconfig, *this),
- m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
+ device_t(mconfig, type, name, tag, owner, clock),
+ device_a2bus_card_interface(mconfig, *this),
+ m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
{
m_shortname = "a2thunpl";
}
a2bus_thunderclock_device::a2bus_thunderclock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
- device_t(mconfig, A2BUS_THUNDERCLOCK, "ThunderWare ThunderClock Plus", tag, owner, clock),
- device_a2bus_card_interface(mconfig, *this),
- m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
+ device_t(mconfig, A2BUS_THUNDERCLOCK, "ThunderWare ThunderClock Plus", tag, owner, clock),
+ device_a2bus_card_interface(mconfig, *this),
+ m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
{
m_shortname = "a2thunpl";
}
@@ -113,7 +113,7 @@ void a2bus_thunderclock_device::device_start()
void a2bus_thunderclock_device::device_reset()
{
- m_dataout = 0;
+ m_dataout = 0;
}
@@ -123,7 +123,7 @@ void a2bus_thunderclock_device::device_reset()
UINT8 a2bus_thunderclock_device::read_c0nx(address_space &space, UINT8 offset)
{
- return (m_dataout << 7);
+ return (m_dataout << 7);
}
@@ -133,25 +133,25 @@ UINT8 a2bus_thunderclock_device::read_c0nx(address_space &space, UINT8 offset)
void a2bus_thunderclock_device::write_c0nx(address_space &space, UINT8 offset, UINT8 data)
{
- // uPD1990AC hookup:
- // bit 0 = DATA IN?
- // bit 1 = CLK
- // bit 2 = STB
- // bit 3 = C0
- // bit 4 = C1
- // bit 5 = C2
- // bit 7 = data out
- if (offset == 0)
- {
- m_upd1990ac->cs_w(1);
- m_upd1990ac->oe_w(1);
- m_upd1990ac->data_in_w(data&0x01);
- m_upd1990ac->c0_w((data&0x08) >> 3);
- m_upd1990ac->c1_w((data&0x10) >> 4);
- m_upd1990ac->c2_w((data&0x20) >> 5);
- m_upd1990ac->stb_w((data&0x04) >> 2);
- m_upd1990ac->clk_w((data&0x02) >> 1);
- }
+ // uPD1990AC hookup:
+ // bit 0 = DATA IN?
+ // bit 1 = CLK
+ // bit 2 = STB
+ // bit 3 = C0
+ // bit 4 = C1
+ // bit 5 = C2
+ // bit 7 = data out
+ if (offset == 0)
+ {
+ m_upd1990ac->cs_w(1);
+ m_upd1990ac->oe_w(1);
+ m_upd1990ac->data_in_w(data&0x01);
+ m_upd1990ac->c0_w((data&0x08) >> 3);
+ m_upd1990ac->c1_w((data&0x10) >> 4);
+ m_upd1990ac->c2_w((data&0x20) >> 5);
+ m_upd1990ac->stb_w((data&0x04) >> 2);
+ m_upd1990ac->clk_w((data&0x02) >> 1);
+ }
}
/*-------------------------------------------------
@@ -160,8 +160,8 @@ void a2bus_thunderclock_device::write_c0nx(address_space &space, UINT8 offset, U
UINT8 a2bus_thunderclock_device::read_cnxx(address_space &space, UINT8 offset)
{
- // ROM is primarily a c800 image, but the first page is also the CnXX ROM
- return m_rom[offset];
+ // ROM is primarily a c800 image, but the first page is also the CnXX ROM
+ return m_rom[offset];
}
/*-------------------------------------------------
@@ -170,17 +170,17 @@ UINT8 a2bus_thunderclock_device::read_cnxx(address_space &space, UINT8 offset)
UINT8 a2bus_thunderclock_device::read_c800(address_space &space, UINT16 offset)
{
- return m_rom[offset];
+ return m_rom[offset];
}
WRITE_LINE_MEMBER( a2bus_thunderclock_device::upd_dataout_w )
{
- if (state)
- {
- m_dataout = 1;
- }
- else
- {
- m_dataout = 0;
- }
+ if (state)
+ {
+ m_dataout = 1;
+ }
+ else
+ {
+ m_dataout = 0;
+ }
}