summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-07-18 16:06:22 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-07-18 16:06:22 -0400
commit1942d7ed764373a34ce98b024c0a80f8a806dfc0 (patch)
tree71c0e10b74b845371498330b6a0561664c7f2bae
parent2c745dc81b6ad5ed9e0b09982b0a07bc53a38e68 (diff)
tecnodar: Fix banking
-rw-r--r--src/mame/drivers/tecnodar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/tecnodar.cpp b/src/mame/drivers/tecnodar.cpp
index 5efe913b489..7418584b8a5 100644
--- a/src/mame/drivers/tecnodar.cpp
+++ b/src/mame/drivers/tecnodar.cpp
@@ -33,7 +33,7 @@ protected:
virtual void machine_start() override;
private:
- void bank_w(u8 data);
+ void bank_w(offs_t offset, u8 data);
u8 ppi_r(offs_t offset);
void ppi_w(offs_t offset, u8 data);
void ppi_pa_w(u8 data);
@@ -57,9 +57,9 @@ void tecnodar_state::machine_start()
}
-void tecnodar_state::bank_w(u8 data)
+void tecnodar_state::bank_w(offs_t offset, u8 data)
{
- m_rombank->set_entry(data & 0x07);
+ m_rombank->set_entry(offset & 0x07);
}
u8 tecnodar_state::ppi_r(offs_t offset)
@@ -104,7 +104,7 @@ void tecnodar_state::mem_map(address_map &map)
void tecnodar_state::io_map(address_map &map)
{
map.global_mask(0xff);
- map(0x00, 0x00).w(FUNC(tecnodar_state::bank_w));
+ map(0x00, 0xff).w(FUNC(tecnodar_state::bank_w));
}