diff options
Diffstat (limited to 'src/devices/bus/a2bus/a2eramworks3.cpp')
-rw-r--r-- | src/devices/bus/a2bus/a2eramworks3.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/devices/bus/a2bus/a2eramworks3.cpp b/src/devices/bus/a2bus/a2eramworks3.cpp index c10a85d884c..11dcf3cae68 100644 --- a/src/devices/bus/a2bus/a2eramworks3.cpp +++ b/src/devices/bus/a2bus/a2eramworks3.cpp @@ -2,7 +2,7 @@ // copyright-holders:R. Belmont /********************************************************************* - a2eramworks3.c + a2eramworks3.cpp Applied Engineering RamWorks III @@ -67,26 +67,31 @@ void a2eaux_ramworks3_device::device_reset() m_bank = 0; } -uint8_t a2eaux_ramworks3_device::read_auxram(uint16_t offset) +u8 a2eaux_ramworks3_device::read_auxram(uint16_t offset) { return m_ram[offset+m_bank]; } -void a2eaux_ramworks3_device::write_auxram(uint16_t offset, uint8_t data) +void a2eaux_ramworks3_device::write_auxram(uint16_t offset, u8 data) { m_ram[offset+m_bank] = data; } -uint8_t *a2eaux_ramworks3_device::get_vram_ptr() +u8 *a2eaux_ramworks3_device::get_vram_ptr() { return &m_ram[0]; } -uint8_t *a2eaux_ramworks3_device::get_auxbank_ptr() +u8 *a2eaux_ramworks3_device::get_auxbank_ptr() { return &m_ram[m_bank]; } +u16 a2eaux_ramworks3_device::get_auxbank_mask() +{ + return 0xffff; +} + /* These cards are split into 64k logical banks. @@ -100,7 +105,7 @@ uint8_t *a2eaux_ramworks3_device::get_auxbank_ptr() However, the software will recognize and correctly use a configuration in which all of banks 00-7F are populated for a total of 8 megabytes. So that's what we do. */ -void a2eaux_ramworks3_device::write_c07x(uint8_t offset, uint8_t data) +void a2eaux_ramworks3_device::write_c07x(u8 offset, u8 data) { // write to C071/3/5/7? if ((offset & 0x9) == 1) @@ -109,7 +114,7 @@ void a2eaux_ramworks3_device::write_c07x(uint8_t offset, uint8_t data) } } -void a2eaux_franklin384_device::write_c07x(uint8_t offset, uint8_t data) +void a2eaux_franklin384_device::write_c07x(u8 offset, u8 data) { if ((offset & 0x9) == 1) { @@ -123,7 +128,7 @@ void a2eaux_franklin384_device::write_c07x(uint8_t offset, uint8_t data) } } -void a2eaux_franklin512_device::write_c07x(uint8_t offset, uint8_t data) +void a2eaux_franklin512_device::write_c07x(u8 offset, u8 data) { if ((offset & 0x9) == 1) { |