#pragma once #ifndef __INCLUDES_ELF__ #define __INCLUDES_ELF__ #include "emu.h" #include "cpu/cosmac/cosmac.h" #include "imagedev/cassette.h" #include "imagedev/snapquik.h" #include "machine/mm74c922.h" #include "video/cdp1861.h" #include "video/dm9368.h" #include "machine/rescap.h" #include "machine/ram.h" #define SCREEN_TAG "screen" #define CDP1802_TAG "a6" #define CDP1861_TAG "a14" #define MM74C923_TAG "a10" #define DM9368_L_TAG "a12" #define DM9368_H_TAG "a8" class elf2_state : public driver_device { public: elf2_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, CDP1802_TAG), m_vdc(*this, CDP1861_TAG), m_kb(*this, MM74C923_TAG), m_led_l(*this, DM9368_L_TAG), m_led_h(*this, DM9368_H_TAG), m_cassette(*this, CASSETTE_TAG), m_ram(*this, RAM_TAG) { } required_device m_maincpu; required_device m_vdc; required_device m_kb; required_device m_led_l; required_device m_led_h; required_device m_cassette; required_device m_ram; virtual void machine_start(); DECLARE_READ8_MEMBER( dispon_r ); DECLARE_READ8_MEMBER( data_r ); DECLARE_WRITE8_MEMBER( data_w ); DECLARE_WRITE8_MEMBER( memory_w ); DECLARE_READ_LINE_MEMBER( wait_r ); DECLARE_READ_LINE_MEMBER( clear_r ); DECLARE_READ_LINE_MEMBER( ef4_r ); DECLARE_WRITE_LINE_MEMBER( q_w ); DECLARE_READ8_MEMBER( dma_r ); DECLARE_WRITE_LINE_MEMBER( da_w ); DECLARE_INPUT_CHANGED_MEMBER( input_w ); // display state UINT8 m_data; }; #endif