From e339f189d077187026f8ee9d9ec2e03744696b10 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Thu, 2 Oct 2014 12:09:37 +0000 Subject: (MESS) converted ibmpcjr and studio2 to use generic cart slot for their carts. nw. --- src/mess/includes/studio2.h | 113 -------------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 src/mess/includes/studio2.h (limited to 'src/mess/includes/studio2.h') diff --git a/src/mess/includes/studio2.h b/src/mess/includes/studio2.h deleted file mode 100644 index 6703d6faa05..00000000000 --- a/src/mess/includes/studio2.h +++ /dev/null @@ -1,113 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Curt Coder -#pragma once - -#ifndef __STUDIO2__ -#define __STUDIO2__ - - -#include "emu.h" -#include "cpu/cosmac/cosmac.h" -#include "imagedev/cartslot.h" -#include "sound/beep.h" -#include "sound/cdp1864.h" -#include "sound/discrete.h" -#include "video/cdp1861.h" - -#define CDP1802_TAG "ic1" -#define CDP1861_TAG "ic2" -#define CDP1864_TAG "cdp1864" -#define SCREEN_TAG "screen" - -class studio2_state : public driver_device -{ -public: - enum - { - TIMER_SETUP_BEEP - }; - - studio2_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, CDP1802_TAG), - m_beeper(*this, "beeper"), - m_vdc(*this, CDP1861_TAG), - m_clear(*this, "CLEAR"), - m_a(*this, "A"), - m_b(*this, "B"), - m_screen(*this, "screen") - { } - - required_device m_maincpu; - required_device m_beeper; - optional_device m_vdc; - required_ioport m_clear; - required_ioport m_a; - required_ioport m_b; - required_device m_screen; - - virtual void machine_start(); - virtual void machine_reset(); - - DECLARE_READ8_MEMBER( dispon_r ); - DECLARE_WRITE8_MEMBER( keylatch_w ); - DECLARE_WRITE8_MEMBER( dispon_w ); - DECLARE_READ_LINE_MEMBER( clear_r ); - DECLARE_READ_LINE_MEMBER( ef3_r ); - DECLARE_READ_LINE_MEMBER( ef4_r ); - DECLARE_WRITE_LINE_MEMBER( q_w ); - DECLARE_INPUT_CHANGED_MEMBER( reset_w ); - DECLARE_DEVICE_IMAGE_LOAD_MEMBER( st2_cartslot_load ); - DECLARE_DEVICE_IMAGE_LOAD_MEMBER( studio2_cart_load ); - - /* keyboard state */ - UINT8 m_keylatch; - DECLARE_DRIVER_INIT(studio2); - -protected: - virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); -}; - -class visicom_state : public studio2_state -{ -public: - visicom_state(const machine_config &mconfig, device_type type, const char *tag) - : studio2_state(mconfig, type, tag), - m_color0_ram(*this, "color0_ram"), - m_color1_ram(*this, "color1_ram") - { } - - virtual UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - - required_shared_ptr m_color0_ram; - required_shared_ptr m_color1_ram; - - DECLARE_WRITE8_MEMBER( dma_w ); - - DECLARE_DEVICE_IMAGE_LOAD_MEMBER( visicom_cart_load ); -}; - -class mpt02_state : public studio2_state -{ -public: - mpt02_state(const machine_config &mconfig, device_type type, const char *tag) - : studio2_state(mconfig, type, tag), - m_cti(*this, CDP1864_TAG), - m_color_ram(*this, "color_ram") - { } - - required_device m_cti; - - virtual void machine_reset(); - - DECLARE_WRITE8_MEMBER( dma_w ); - DECLARE_READ_LINE_MEMBER( rdata_r ); - DECLARE_READ_LINE_MEMBER( bdata_r ); - DECLARE_READ_LINE_MEMBER( gdata_r ); - - /* video state */ - required_shared_ptr m_color_ram; - UINT8 m_color; -}; - -#endif -- cgit v1.2.3-70-g09d2