summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2017-11-02 22:23:00 +0100
committer mooglyguy <therealmogminer@gmail.com>2017-11-02 22:23:34 +0100
commit6571e6731ea84f09ec3c8cb29c1cd4b30b09c2a9 (patch)
treea2ca6eb1c71ede361c29c045a404932d5f630ab3 /src/devices
parent40b9220aec2663e6696994f220b3554e61aef15b (diff)
-gba: By default, GPIO ports should pass ROM through on read. Fixes Doom 2 and Duke Nukem Advance. [Ryan Holtz]
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/bus/gba/rom.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/bus/gba/rom.cpp b/src/devices/bus/gba/rom.cpp
index 5d083f6479e..e3bcec5c442 100644
--- a/src/devices/bus/gba/rom.cpp
+++ b/src/devices/bus/gba/rom.cpp
@@ -158,7 +158,7 @@ void gba_rom_device::device_reset()
m_gpio_regs[1] = 0;
m_gpio_regs[2] = 0;
m_gpio_regs[3] = 0;
- m_gpio_write_only = 0;
+ m_gpio_write_only = 1;
m_gpio_dirs = 0;
}
@@ -273,7 +273,6 @@ void gba_rom_3dmatrix_device::device_reset()
READ32_MEMBER(gba_rom_device::read_gpio)
{
- logerror("read GPIO offs %X\n", offset);
if (!m_gpio_write_only)
{
switch (offset)
@@ -301,7 +300,6 @@ READ32_MEMBER(gba_rom_device::read_gpio)
WRITE32_MEMBER(gba_rom_device::write_gpio)
{
- logerror("write GPIO offs %X data %X\n", offset, data);
switch (offset)
{
case 0: