#pragma once #ifndef __TMC600__ #define __TMC600__ #include "emu.h" #include "cpu/cosmac/cosmac.h" #include "formats/basicdsk.h" #include "imagedev/flopdrv.h" #include "imagedev/cassette.h" #include "imagedev/snapquik.h" #include "machine/ctronics.h" #include "machine/ram.h" #include "sound/cdp1869.h" #define SCREEN_TAG "screen" #define CDP1802_TAG "cdp1802" #define CDP1869_TAG "cdp1869" #define CENTRONICS_TAG "centronics" #define TMC600_PAGE_RAM_SIZE 0x400 #define TMC600_PAGE_RAM_MASK 0x3ff class tmc600_state : public driver_device { public: tmc600_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, CDP1802_TAG), m_vis(*this, CDP1869_TAG), m_cassette(*this, CASSETTE_TAG), m_ram(*this, RAM_TAG), m_page_ram(*this, "page_ram") { } required_device m_maincpu; required_device m_vis; required_device m_cassette; required_device m_ram; virtual void machine_start(); virtual void video_start(); DECLARE_WRITE8_MEMBER( keyboard_latch_w ); DECLARE_WRITE8_MEMBER( vismac_register_w ); DECLARE_WRITE8_MEMBER( vismac_data_w ); DECLARE_WRITE8_MEMBER( page_ram_w ); DECLARE_READ_LINE_MEMBER( clear_r ); DECLARE_READ_LINE_MEMBER( ef2_r ); DECLARE_READ_LINE_MEMBER( ef3_r ); DECLARE_WRITE_LINE_MEMBER( q_w ); UINT8 get_color(UINT16 pma); // video state int m_vismac_reg_latch; // video register latch int m_vismac_color_latch; // color latch int m_vismac_bkg_latch; // background color latch int m_blink; // cursor blink required_shared_ptr m_page_ram; // page memory UINT8 *m_color_ram; // color memory UINT8 *m_char_rom; // character generator ROM // keyboard state int m_keylatch; // key latch }; // ---------- defined in video/tmc600.c ---------- MACHINE_CONFIG_EXTERN( tmc600_video ); #endif