summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/mpz80.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/includes/mpz80.h')
-rw-r--r--src/mess/includes/mpz80.h99
1 files changed, 0 insertions, 99 deletions
diff --git a/src/mess/includes/mpz80.h b/src/mess/includes/mpz80.h
deleted file mode 100644
index 8802273b5a3..00000000000
--- a/src/mess/includes/mpz80.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef __MPZ80__
-#define __MPZ80__
-
-#include "emu.h"
-#include "bus/s100/s100.h"
-#include "cpu/z80/z80.h"
-#include "machine/ram.h"
-
-#define Z80_TAG "17a"
-#define AM9512_TAG "17d"
-
-class mpz80_state : public driver_device
-{
-public:
- mpz80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ram(*this, RAM_TAG),
- m_s100(*this, S100_TAG),
- m_rom(*this, Z80_TAG),
- m_map_ram(*this, "map_ram"),
- m_16c(*this, "16C"),
- m_nmi(1),
- m_pint(1),
- m_int_pend(0),
- m_pretrap(0),
- m_trap(0),
- m_trap_reset(0),
- m_trap_void(1),
- m_trap_halt(1),
- m_trap_int(1),
- m_trap_stop(1),
- m_trap_aux(1)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<s100_bus_t> m_s100;
- required_memory_region m_rom;
- optional_shared_ptr<UINT8> m_map_ram;
- required_ioport m_16c;
-
- virtual void machine_start();
- virtual void machine_reset();
-
- inline offs_t get_address(offs_t offset);
- inline offs_t get_io_address(offs_t offset);
-
- inline void check_traps();
- inline void check_interrupt();
-
- DECLARE_READ8_MEMBER( mmu_r );
- DECLARE_WRITE8_MEMBER( mmu_w );
- DECLARE_READ8_MEMBER( mmu_io_r );
- DECLARE_WRITE8_MEMBER( mmu_io_w );
- DECLARE_READ8_MEMBER( trap_addr_r );
- DECLARE_READ8_MEMBER( keyboard_r );
- DECLARE_READ8_MEMBER( switch_r );
- DECLARE_READ8_MEMBER( status_r );
- DECLARE_WRITE8_MEMBER( disp_seg_w );
- DECLARE_WRITE8_MEMBER( disp_col_w );
- DECLARE_WRITE8_MEMBER( task_w );
- DECLARE_WRITE8_MEMBER( mask_w );
- DECLARE_WRITE8_MEMBER( terminal_w );
- DECLARE_WRITE_LINE_MEMBER( s100_pint_w );
- DECLARE_WRITE_LINE_MEMBER( s100_nmi_w );
- DECLARE_DIRECT_UPDATE_MEMBER(mpz80_direct_update_handler);
-
- // memory state
- UINT32 m_addr;
- UINT8 m_task;
- UINT8 m_mask;
-
- // interrupt state
- int m_nmi;
- int m_pint;
- int m_int_pend;
-
- // trap state
- UINT8 m_pretrap_addr;
- UINT8 m_trap_addr;
- UINT8 m_status;
- UINT16 m_trap_start;
- int m_pretrap;
- int m_trap;
- int m_trap_reset;
- int m_trap_void;
- int m_trap_halt;
- int m_trap_int;
- int m_trap_stop;
- int m_trap_aux;
- DECLARE_DRIVER_INIT(mpz80);
-};
-
-#endif