diff options
| author | 2024-05-05 13:26:31 +0100 | |
|---|---|---|
| committer | 2024-05-05 08:26:31 -0400 | |
| commit | 21c3cdd699122ca58c284177f35c6e4ffcf4bfb3 (patch) | |
| tree | b11f62ac68f97db3e13c92b58f5ecc083db6d0f2 /src | |
| parent | b3ffbf757343e996e650ca014b36d06816ed3bb7 (diff) | |
msx/msx.cpp: Add msx2+ vdp mode register. (#12340)
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/msx/msx.cpp | 5 | ||||
| -rw-r--r-- | src/mame/msx/msx.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/msx/msx.cpp b/src/mame/msx/msx.cpp index 199d85cabbe..90e94dfba3d 100644 --- a/src/mame/msx/msx.cpp +++ b/src/mame/msx/msx.cpp @@ -708,13 +708,14 @@ void msx2p_base_state::machine_start() m_boot_flags = m_cold_boot_flags; save_item(NAME(m_boot_flags)); + save_item(NAME(m_vdp_mode)); } void msx2p_base_state::msx2plus_io_map(address_map &map) { msx2_v9958_io_map(map); - // f3 - vdp display mode? - map(0xf4, 0xf4).lrw8(NAME([this]() { return m_boot_flags;}), NAME([this](u8 data) { m_boot_flags = data; })); + map(0xf3, 0xf3).lrw8(NAME([this]() { return m_vdp_mode; }), NAME([this](u8 data) { m_vdp_mode = data; })); + map(0xf4, 0xf4).lrw8(NAME([this]() { return m_boot_flags; }), NAME([this](u8 data) { m_boot_flags = data; })); } void msx2p_base_state::msx2plus_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout) diff --git a/src/mame/msx/msx.h b/src/mame/msx/msx.h index cd682c17629..ce0ecc152db 100644 --- a/src/mame/msx/msx.h +++ b/src/mame/msx/msx.h @@ -362,6 +362,7 @@ protected: u8 m_cold_boot_flags; u8 m_boot_flags; + u8 m_vdp_mode; }; #endif // MAME_MSX_MSX_H |
