summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hornet.cpp
diff options
context:
space:
mode:
author cam900 <dbtlrchl@naver.com>2019-05-01 17:36:50 +0900
committer cam900 <dbtlrchl@naver.com>2019-05-01 17:36:50 +0900
commit2cce7ba6926a48b9aa0a40944ac1c1d30038f0f5 (patch)
tree53a5f11423edb2c8a0e584a24d137fb936194f84 /src/mame/drivers/hornet.cpp
parent5501b8c228f1a28809702edc65c52a2f4560d956 (diff)
adc1213x.cpp : Simplify handlers
Diffstat (limited to 'src/mame/drivers/hornet.cpp')
-rw-r--r--src/mame/drivers/hornet.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp
index 9416abc126b..205becc7026 100644
--- a/src/mame/drivers/hornet.cpp
+++ b/src/mame/drivers/hornet.cpp
@@ -556,7 +556,7 @@ READ8_MEMBER(hornet_state::sysreg_r)
0x01 = ADDO (ADC DO)
*/
r = 0xf0;
- r |= m_adc12138->do_r(space, 0) | (m_adc12138->eoc_r(space, 0) << 2);
+ r |= m_adc12138->do_r() | (m_adc12138->eoc_r() << 2);
break;
case 4: /* I/O port 4 - DIP switches */
@@ -607,10 +607,10 @@ WRITE8_MEMBER(hornet_state::sysreg_w)
0x02 = ADDI (ADC DI)
0x01 = ADDSCLK (ADC SCLK)
*/
- m_adc12138->cs_w(space, 0, (data >> 3) & 0x1);
- m_adc12138->conv_w(space, 0, (data >> 2) & 0x1);
- m_adc12138->di_w(space, 0, (data >> 1) & 0x1);
- m_adc12138->sclk_w(space, 0, data & 0x1);
+ m_adc12138->cs_w((data >> 3) & 0x1);
+ m_adc12138->conv_w((data >> 2) & 0x1);
+ m_adc12138->di_w((data >> 1) & 0x1);
+ m_adc12138->sclk_w(data & 0x1);
m_audiocpu->set_input_line(INPUT_LINE_RESET, (data & 0x80) ? CLEAR_LINE : ASSERT_LINE);
osd_printf_debug("System register 1 = %02X\n", data);