diff options
author | Curt Coder <curtcoder@mail.com> | 2013-05-31 13:46:11 +0000 |
---|---|---|
committer | Curt Coder <curtcoder@mail.com> | 2013-05-31 13:46:11 +0000 |
commit | 86b2a50fe324c57cfa8e36d4b538c82f3b457a57 (patch) | |
tree | 15bb0f58e598a8c092fb68f113f931abceb27870 /src/mess/machine/abc99.h | |
parent | 48736e0700cad9c783a824e0391bba1c1064fb1e (diff) |
(MESS) abc80x, abc1600: Added Luxor ABC keyboard port slot interface. [Curt Coder]
Diffstat (limited to 'src/mess/machine/abc99.h')
-rw-r--r-- | src/mess/machine/abc99.h | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/src/mess/machine/abc99.h b/src/mess/machine/abc99.h index 1a25d118db1..75ae283c292 100644 --- a/src/mess/machine/abc99.h +++ b/src/mess/machine/abc99.h @@ -14,48 +14,19 @@ #include "emu.h" #include "cpu/mcs48/mcs48.h" +#include "machine/abckb.h" #include "sound/speaker.h" //************************************************************************** -// MACROS / CONSTANTS -//************************************************************************** - -#define ABC99_TAG "abc99" - - - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_ABC99_ADD(_config) \ - MCFG_DEVICE_ADD(ABC99_TAG, ABC99, 0) \ - MCFG_DEVICE_CONFIG(_config) - - -#define ABC99_INTERFACE(_name) \ - const abc99_interface (_name) = - - - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** -// ======================> abc99_interface - -struct abc99_interface -{ - devcb_write_line m_out_clock_cb; - devcb_write_line m_out_keydown_cb; -}; - // ======================> abc99_device class abc99_device : public device_t, - public abc99_interface + public abc_keyboard_interface { public: // construction/destruction @@ -66,6 +37,10 @@ public: virtual machine_config_constructor device_mconfig_additions() const; virtual ioport_constructor device_input_ports() const; + // abc_keyboard_interface overrides + virtual int rxd_r(); + virtual void txd_w(int state); + DECLARE_INPUT_CHANGED_MEMBER( keyboard_reset ); DECLARE_WRITE8_MEMBER( z2_led_w ); @@ -77,15 +52,11 @@ public: DECLARE_WRITE8_MEMBER( z5_p2_w ); DECLARE_READ8_MEMBER( z5_t1_r ); - DECLARE_WRITE_LINE_MEMBER( rxd_w ); - DECLARE_READ_LINE_MEMBER( txd_r ); - protected: // device-level overrides virtual void device_start(); virtual void device_reset(); virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); - virtual void device_config_complete(); private: enum |