/********************************************************************* a2estd80col.c Apple IIe Standard 80 Column Card (2K of RAM, no double-hi-res) *********************************************************************/ #include "emu.h" #include "includes/apple2.h" #include "machine/a2estd80col.h" /*************************************************************************** PARAMETERS ***************************************************************************/ //************************************************************************** // GLOBAL VARIABLES //************************************************************************** const device_type A2EAUX_STD80COL = &device_creator; //************************************************************************** // LIVE DEVICE //************************************************************************** a2eaux_std80col_device::a2eaux_std80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, A2EAUX_STD80COL, "Apple IIe Standard 80-Column Card", tag, owner, clock, "a2estd80", __FILE__), device_a2eauxslot_card_interface(mconfig, *this) { } a2eaux_std80col_device::a2eaux_std80col_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_std80col_device::device_start() { set_a2eauxslot_device(); save_item(NAME(m_ram)); } void a2eaux_std80col_device::device_reset() { } UINT8 a2eaux_std80col_device::read_auxram(UINT16 offset) { if (offset < 0x800) { return m_ram[offset]; } return 0xff; } void a2eaux_std80col_device::write_auxram(UINT16 offset, UINT8 data) { if (offset < 0x800) { m_ram[offset] = data; } } UINT8 *a2eaux_std80col_device::get_vram_ptr() { return &m_ram[0]; }