summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/tanbus/tanram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/tanbus/tanram.cpp')
-rw-r--r--src/devices/bus/tanbus/tanram.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/devices/bus/tanbus/tanram.cpp b/src/devices/bus/tanbus/tanram.cpp
index 0e3dadf9d15..253c05f4f24 100644
--- a/src/devices/bus/tanbus/tanram.cpp
+++ b/src/devices/bus/tanbus/tanram.cpp
@@ -55,17 +55,11 @@ uint8_t tanbus_tanram_device::read(offs_t offset, int inhrom, int inhram, int be
if (be && !inhram)
{
- /* 32K dynamic ram */
- if ((offset >= 0x2000) && (offset < 0xa000))
+ /* 32K dynamic ram + 7K static ram */
+ if ((offset >= 0x2000) && (offset < 0xbc00))
{
data = m_ram[offset - 0x2000];
}
-
- /* 7K static ram */
- if ((offset >= 0xa000) && (offset < 0xbc00))
- {
- data = m_ram[offset - 0xa000];
- }
}
return data;
}
@@ -78,16 +72,10 @@ void tanbus_tanram_device::write(offs_t offset, uint8_t data, int inhrom, int in
{
if (be && !inhram)
{
- /* 32K dynamic ram */
- if ((offset >= 0x2000) && (offset < 0xa000))
+ /* 32K dynamic ram + 7K static ram */
+ if ((offset >= 0x2000) && (offset < 0xbc00))
{
m_ram[offset - 0x2000] = data;
}
-
- /* 7K static ram */
- if ((offset >= 0xa000) && (offset < 0xbc00))
- {
- m_ram[offset - 0xa000] = data;
- }
}
}