diff options
Diffstat (limited to 'src/mame/includes/lc80.h')
-rw-r--r-- | src/mame/includes/lc80.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/mame/includes/lc80.h b/src/mame/includes/lc80.h deleted file mode 100644 index 6fb76e3df40..00000000000 --- a/src/mame/includes/lc80.h +++ /dev/null @@ -1,74 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Curt Coder -#ifndef MAME_INCLUDES_LC80_H -#define MAME_INCLUDES_LC80_H - -#pragma once - -#include "cpu/z80/z80.h" -#include "machine/z80daisy.h" -#include "imagedev/cassette.h" -#include "machine/ram.h" -#include "machine/z80pio.h" -#include "machine/z80ctc.h" -#include "sound/spkrdev.h" - -#define SCREEN_TAG "screen" -#define Z80_TAG "d201" -#define Z80CTC_TAG "d208" -#define Z80PIO1_TAG "d206" -#define Z80PIO2_TAG "d207" -//#define SPEAKER_TAG "b237" - -class lc80_state : public driver_device -{ -public: - lc80_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, Z80_TAG), - m_pio2(*this, Z80PIO2_TAG), - m_cassette(*this, "cassette"), - m_speaker(*this, "speaker"), - m_ram(*this, RAM_TAG), - m_y(*this, "Y%u", 0U), - m_digits(*this, "digit%u", 0U), - m_out_led(*this, "led0") - { } - - void lc80_2(machine_config &config); - void lc80(machine_config &config); - - DECLARE_INPUT_CHANGED_MEMBER( trigger_reset ); - DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi ); - -private: - required_device<cpu_device> m_maincpu; - required_device<z80pio_device> m_pio2; - required_device<cassette_image_device> m_cassette; - required_device<speaker_sound_device> m_speaker; - required_device<ram_device> m_ram; - required_ioport_array<4> m_y; - output_finder<6> m_digits; - output_finder<> m_out_led; - - virtual void machine_start() override; - - DECLARE_WRITE_LINE_MEMBER( ctc_z0_w ); - DECLARE_WRITE_LINE_MEMBER( ctc_z1_w ); - DECLARE_WRITE_LINE_MEMBER( ctc_z2_w ); - void pio1_pa_w(uint8_t data); - uint8_t pio1_pb_r(); - void pio1_pb_w(uint8_t data); - uint8_t pio2_pb_r(); - - void update_display(); - - // display state - uint8_t m_digit; - uint8_t m_segment; - void lc80_io(address_map &map); - void lc80_mem(address_map &map); - //void lc80e_mem(address_map &map); -}; - -#endif // MAME_INCLUDES_LC80_H |