summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/midwayic.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-03-26 11:13:37 +1100
committer Vas Crabb <vas@vastheman.com>2019-03-26 11:13:37 +1100
commit97b67170277437131adf6ed4d60139c172529e4f (patch)
tree7a5cbf608f191075f1612b1af15832c206a3fe2d /src/mame/machine/midwayic.h
parentb380514764cf857469bae61c11143a19f79a74c5 (diff)
(nw) Clean up the mess on master
This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
Diffstat (limited to 'src/mame/machine/midwayic.h')
-rw-r--r--src/mame/machine/midwayic.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/mame/machine/midwayic.h b/src/mame/machine/midwayic.h
index e5a422782b5..4e0a18a36d8 100644
--- a/src/mame/machine/midwayic.h
+++ b/src/mame/machine/midwayic.h
@@ -25,9 +25,9 @@ public:
void set_upper(int upper) { m_upper = upper; }
- DECLARE_READ8_MEMBER( read );
- DECLARE_WRITE8_MEMBER( write );
- DECLARE_READ8_MEMBER( status_r );
+ u8 read();
+ void write(u8 data);
+ u8 status_r();
DECLARE_WRITE_LINE_MEMBER( reset_w );
protected:
@@ -35,12 +35,17 @@ protected:
// device-level overrides
virtual void device_start() override;
+ virtual void device_reset() override;
+ virtual ioport_constructor device_input_ports() const override;
void generate_serial_data(int upper);
void serial_register_state();
+ required_ioport m_io_serial_digit;
+
uint8_t m_data[16]; // reused by other devices
int m_upper;
+
private:
uint8_t m_buff;
uint8_t m_idx;
@@ -95,9 +100,9 @@ public:
void set_yearoffs(int yearoffs) { m_yearoffs = yearoffs; }
- DECLARE_READ8_MEMBER( read );
- DECLARE_WRITE8_MEMBER( write );
- DECLARE_READ8_MEMBER( status_r );
+ u8 read();
+ void write(u8 data);
+ u8 status_r();
void set_default_nvram(const uint8_t *nvram);