/************************************************************************* Memotech MTX 500, MTX 512 and RS 128 *************************************************************************/ #ifndef __MTX__ #define __MTX__ #include "imagedev/snapquik.h" #include "imagedev/cassette.h" #include "machine/ctronics.h" #include "machine/z80ctc.h" #define Z80_TAG "z80" #define Z80CTC_TAG "z80ctc" #define Z80DART_TAG "z80dart" #define FD1793_TAG "fd1793" // SDX #define FD1791_TAG "fd1791" // FDX #define SN76489A_TAG "sn76489a" #define MC6845_TAG "mc6845" #define SCREEN_TAG "screen" #define CENTRONICS_TAG "centronics" class mtx_state : public driver_device { public: mtx_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } /* keyboard state */ UINT8 m_key_sense; /* video state */ UINT8 *m_video_ram; UINT8 *m_attr_ram; /* sound state */ UINT8 m_sound_latch; /* devices */ z80ctc_device *m_z80ctc; device_t *m_z80dart; cassette_image_device *m_cassette; centronics_device *m_centronics; /* timers */ device_t *m_cassette_timer; DECLARE_WRITE8_MEMBER(mtx_bankswitch_w); DECLARE_WRITE8_MEMBER(mtx_sound_latch_w); DECLARE_WRITE8_MEMBER(mtx_sense_w); DECLARE_READ8_MEMBER(mtx_key_lo_r); DECLARE_READ8_MEMBER(mtx_key_hi_r); DECLARE_WRITE8_MEMBER(hrx_address_w); DECLARE_READ8_MEMBER(hrx_data_r); DECLARE_WRITE8_MEMBER(hrx_data_w); DECLARE_READ8_MEMBER(hrx_attr_r); DECLARE_WRITE8_MEMBER(hrx_attr_w); }; /*----------- defined in machine/mtx.c -----------*/ MACHINE_START( mtx512 ); MACHINE_RESET( mtx512 ); SNAPSHOT_LOAD( mtx ); /* Sound */ READ8_DEVICE_HANDLER( mtx_sound_strobe_r ); /* Cassette */ WRITE8_DEVICE_HANDLER( mtx_cst_w ); /* Printer */ READ8_DEVICE_HANDLER( mtx_strobe_r ); READ8_DEVICE_HANDLER( mtx_prt_r ); /* Keyboard */ /* HRX */ #endif /* __MTX_H__ */