Skip to content

Commit

Permalink
add support ymfm_external_write
Browse files Browse the repository at this point in the history
  • Loading branch information
h1romas4 committed Feb 11, 2023
1 parent 7070cd1 commit 10fb80a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cpp/ymfmffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10fb80a

Please sign in to comment.