From 10fb80a8a621bc659f62aac93ae8b153f10262e4 Mon Sep 17 00:00:00 2001 From: h1romas4 Date: Sat, 11 Feb 2023 13:29:14 +0900 Subject: [PATCH] add support ymfm_external_write --- src/cpp/ymfmffi.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cpp/ymfmffi.cpp b/src/cpp/ymfmffi.cpp index f101802..2dfb266 100644 --- a/src/cpp/ymfmffi.cpp +++ b/src/cpp/ymfmffi.cpp @@ -205,6 +205,11 @@ class vgm_chip : public vgm_chip_base, public ymfm::ymfm_interface return (offset < data.size()) ? data[offset] : 0; } + virtual void ymfm_external_write(ymfm::access_class type, uint32_t address, uint8_t data) override + { + write_data(type, address, 1, &data); + } + // internal state ChipType m_chip; uint32_t m_clock;