mirror of
https://github.com/holub/mame
synced 2025-05-04 13:33:05 +03:00
Use a port finder, duh (nw)
This commit is contained in:
parent
58b351e268
commit
caa4bb8db5
@ -304,6 +304,7 @@ segaxbd_state::segaxbd_state(const machine_config &mconfig, device_type type, co
|
|||||||
m_palette_entries(0),
|
m_palette_entries(0),
|
||||||
m_screen(*this, "screen"),
|
m_screen(*this, "screen"),
|
||||||
m_palette(*this, "palette"),
|
m_palette(*this, "palette"),
|
||||||
|
m_io0_porta(*this, "IO0PORTA"),
|
||||||
m_adc_ports(*this, {"ADC0", "ADC1", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6", "ADC7"}),
|
m_adc_ports(*this, {"ADC0", "ADC1", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6", "ADC7"}),
|
||||||
m_mux_ports(*this, {"MUX0", "MUX1", "MUX2", "MUX3"})
|
m_mux_ports(*this, {"MUX0", "MUX1", "MUX2", "MUX3"})
|
||||||
{
|
{
|
||||||
@ -736,7 +737,7 @@ void segaxbd_state::generic_iochip0_lamps_w(uint8_t data)
|
|||||||
|
|
||||||
READ8_MEMBER(segaxbd_state::aburner2_motor_r)
|
READ8_MEMBER(segaxbd_state::aburner2_motor_r)
|
||||||
{
|
{
|
||||||
uint8_t data = ioport("IO0PORTA")->read() & 0xc0;
|
uint8_t data = m_io0_porta->read() & 0xc0;
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
return data | 0x3f;
|
return data | 0x3f;
|
||||||
@ -761,7 +762,7 @@ WRITE8_MEMBER(segaxbd_state::aburner2_motor_w)
|
|||||||
|
|
||||||
READ8_MEMBER(segaxbd_state::smgp_motor_r)
|
READ8_MEMBER(segaxbd_state::smgp_motor_r)
|
||||||
{
|
{
|
||||||
uint8_t data = ioport("IO0PORTA")->read() & 0xc0;
|
uint8_t data = m_io0_porta->read() & 0xc0;
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
return data | 0x0;
|
return data | 0x0;
|
||||||
|
@ -129,6 +129,7 @@ protected:
|
|||||||
uint8_t m_palette_hilight[32]; // RGB translations for hilighted pixels
|
uint8_t m_palette_hilight[32]; // RGB translations for hilighted pixels
|
||||||
required_device<screen_device> m_screen;
|
required_device<screen_device> m_screen;
|
||||||
required_device<palette_device> m_palette;
|
required_device<palette_device> m_palette;
|
||||||
|
required_ioport m_io0_porta;
|
||||||
optional_ioport_array<8> m_adc_ports;
|
optional_ioport_array<8> m_adc_ports;
|
||||||
optional_ioport_array<4> m_mux_ports;
|
optional_ioport_array<4> m_mux_ports;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user