diff options
author | 2019-03-17 11:10:17 +0100 | |
---|---|---|
committer | 2019-03-17 11:10:43 +0100 | |
commit | 16b1e9923d9c9aceb4a7665e9f21c9806acb309d (patch) | |
tree | 252296c9a266c7e23aedf00f0029a1a73ee89696 /src/devices/machine/ins8154.h | |
parent | 735ac8764eeb35866fe3ce1286f92d4ecfe7a823 (diff) |
-ins8154: Added internal 128-byte RAM and simplified handlers. [Ryan Holtz]
-astrocde: Various changes. [Ryan Holtz]
* Added I/O access handling to expansion slot.
* Added INS8154 I/O functionality to Blue RAM boards (RAM not yet hooked up).
* Hooked up cassette saving and loading to Blue RAM boards.
Diffstat (limited to 'src/devices/machine/ins8154.h')
-rw-r--r-- | src/devices/machine/ins8154.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/devices/machine/ins8154.h b/src/devices/machine/ins8154.h index 5ba94ab9cda..2ce40ec9e70 100644 --- a/src/devices/machine/ins8154.h +++ b/src/devices/machine/ins8154.h @@ -47,11 +47,13 @@ public: auto out_b() { return m_out_b_cb.bind(); } auto out_irq() { return m_out_irq_cb.bind(); } - DECLARE_READ8_MEMBER( ins8154_r ); - DECLARE_WRITE8_MEMBER( ins8154_w ); + uint8_t read_io(offs_t offset); + void write_io(offs_t offset, uint8_t data); + uint8_t read_ram(offs_t offset); + void write_ram(offs_t offset, uint8_t data); - DECLARE_WRITE8_MEMBER( ins8154_porta_w ); - DECLARE_WRITE8_MEMBER( ins8154_portb_w ); + void porta_w(uint8_t data); + void portb_w(uint8_t data); protected: // device-level overrides @@ -77,6 +79,9 @@ private: uint8_t m_mdr; /* Mode Definition Register */ uint8_t m_odra; /* Output Definition Register Port A */ uint8_t m_odrb; /* Output Definition Register Port B */ + + /* on-board RAM */ + uint8_t m_ram[0x80]; }; |