diff options
Diffstat (limited to 'src/devices/bus/a2bus/a2eext80col.c')
-rw-r--r-- | src/devices/bus/a2bus/a2eext80col.c | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/devices/bus/a2bus/a2eext80col.c b/src/devices/bus/a2bus/a2eext80col.c new file mode 100644 index 00000000000..c3e9af48cac --- /dev/null +++ b/src/devices/bus/a2bus/a2eext80col.c @@ -0,0 +1,75 @@ +// license:BSD-3-Clause +// copyright-holders:R. Belmont +/********************************************************************* + + a2eext80col.c + + Apple IIe Extended 80 Column Card (64K of RAM, double-hi-res) + +*********************************************************************/ + +#include "emu.h" +#include "includes/apple2.h" +#include "a2eext80col.h" + + +/*************************************************************************** + PARAMETERS +***************************************************************************/ + +//************************************************************************** +// GLOBAL VARIABLES +//************************************************************************** + +const device_type A2EAUX_EXT80COL = &device_creator<a2eaux_ext80col_device>; + +//************************************************************************** +// LIVE DEVICE +//************************************************************************** + +a2eaux_ext80col_device::a2eaux_ext80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : + device_t(mconfig, A2EAUX_EXT80COL, "Apple IIe Extended 80-Column Card", tag, owner, clock, "a2eext80", __FILE__), + device_a2eauxslot_card_interface(mconfig, *this) +{ +} + +a2eaux_ext80col_device::a2eaux_ext80col_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source), + device_a2eauxslot_card_interface(mconfig, *this) +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void a2eaux_ext80col_device::device_start() +{ + set_a2eauxslot_device(); + memset(m_ram, 0, sizeof(m_ram)); + save_item(NAME(m_ram)); +} + +void a2eaux_ext80col_device::device_reset() +{ +} + +UINT8 a2eaux_ext80col_device::read_auxram(UINT16 offset) +{ + return m_ram[offset]; +} + +void a2eaux_ext80col_device::write_auxram(UINT16 offset, UINT8 data) +{ + m_ram[offset] = data; +} + +UINT8 *a2eaux_ext80col_device::get_vram_ptr() +{ + return &m_ram[0]; +} + +UINT8 *a2eaux_ext80col_device::get_auxbank_ptr() +{ + return &m_ram[0]; +} |