summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ariedlmayer@gmail.com>2025-07-10 09:22:31 -0400
committer AJR <ariedlmayer@gmail.com>2025-07-10 09:22:31 -0400
commit5a73a8a66105b6189f4252f89b41250d88a5c323 (patch)
treeb7e69e3856ba2d1198a6e3e5f6cd2c70d4b69ffb
parent8453a22c0961f1ae958dd5438bbc9e413d89b0eb (diff)
nes_vt32_soc: Add some register stubs needed by typo240
-rw-r--r--src/mame/nintendo/nes_vt32_soc.cpp27
-rw-r--r--src/mame/nintendo/nes_vt32_soc.h7
2 files changed, 34 insertions, 0 deletions
diff --git a/src/mame/nintendo/nes_vt32_soc.cpp b/src/mame/nintendo/nes_vt32_soc.cpp
index 7294a417f19..11f1271ccfe 100644
--- a/src/mame/nintendo/nes_vt32_soc.cpp
+++ b/src/mame/nintendo/nes_vt32_soc.cpp
@@ -191,6 +191,26 @@ u8 nes_vt32_soc_device::vtfp_412d_r()
return m_upper_read_412d_callback();
}
+u8 nes_vt32_soc_device::vt32_4132_r()
+{
+ return m_4132;
+}
+
+void nes_vt32_soc_device::vt32_4132_w(u8 data)
+{
+ m_4132 = data;
+}
+
+u8 nes_vt32_soc_device::vt32_4134_r()
+{
+ return m_4134;
+}
+
+void nes_vt32_soc_device::vt32_4134_w(u8 data)
+{
+ m_4134 = data;
+}
+
void nes_vt32_soc_device::vtfp_4242_w(u8 data)
{
logerror("%s: vtfp_4242_w %02x\n", machine().describe_context(), data);
@@ -365,6 +385,8 @@ void nes_vt32_soc_device::device_start()
save_item(NAME(m_mmc1_shift_reg));
save_item(NAME(m_mmc1_control));
save_item(NAME(m_mmc1_prg_bank));
+ save_item(NAME(m_4132));
+ save_item(NAME(m_4134));
}
void nes_vt32_soc_device::device_reset()
@@ -374,6 +396,8 @@ void nes_vt32_soc_device::device_reset()
m_mmc1_shift_reg = 1 << 4;
m_mmc1_control = 0x0c;
m_mmc1_prg_bank = 0;
+ m_4132 = 0;
+ m_4134 = 0;
}
void nes_vt32_soc_device::nes_vt32_soc_map(address_map &map)
@@ -431,6 +455,9 @@ void nes_vt32_soc_device::nes_vt32_soc_map(address_map &map)
map(0x412c, 0x412c).rw(FUNC(nes_vt32_soc_device::vtfp_412c_r), FUNC(nes_vt32_soc_device::vtfp_412c_extbank_w)); // GPIO
map(0x412d, 0x412d).r(FUNC(nes_vt32_soc_device::vtfp_412d_r)).nopw(); // GPIO
+ map(0x4132, 0x4132).rw(FUNC(nes_vt32_soc_device::vt32_4132_r), FUNC(nes_vt32_soc_device::vt32_4132_w));
+ map(0x4134, 0x4134).rw(FUNC(nes_vt32_soc_device::vt32_4134_r), FUNC(nes_vt32_soc_device::vt32_4134_w));
+
map(0x4141, 0x4141).nopw(); // ??
map(0x4142, 0x4142).nopw(); // ??
diff --git a/src/mame/nintendo/nes_vt32_soc.h b/src/mame/nintendo/nes_vt32_soc.h
index a45430a8ed2..f8c43562303 100644
--- a/src/mame/nintendo/nes_vt32_soc.h
+++ b/src/mame/nintendo/nes_vt32_soc.h
@@ -47,6 +47,10 @@ protected:
void vtfp_4a00_w(u8 data);
void vtfp_411d_w(u8 data);
u8 vthh_414a_r();
+ u8 vt32_4132_r();
+ void vt32_4132_w(u8 data);
+ u8 vt32_4134_r();
+ void vt32_4134_w(u8 data);
virtual u8 spr_r(offs_t offset) override;
virtual u8 chr_r(offs_t offset) override;
@@ -58,6 +62,9 @@ private:
u8 m_mmc1_shift_reg;
u8 m_mmc1_control;
u8 m_mmc1_prg_bank;
+
+ u8 m_4132;
+ u8 m_4134;
};
class nes_vt32_soc_pal_device : public nes_vt32_soc_device