--- nono/vm/opm.h 2026/04/29 17:05:14 1.1.1.5 +++ nono/vm/opm.h 2026/04/29 17:05:17 1.1.1.6 @@ -13,6 +13,9 @@ #include "device.h" #include "event.h" +class ADPCMDevice; +class FDCDevice; + class OPMDevice : public IODevice { using inherited = IODevice; @@ -24,6 +27,7 @@ class OPMDevice : public IODevice OPMDevice(); virtual ~OPMDevice() override; + bool Init() override; void ResetHard(bool poweron) override; protected: @@ -41,6 +45,7 @@ class OPMDevice : public IODevice uint64 busy_origin; // BUSY の起点時刻 uint64 busy_start; // BUSY のアサート開始時刻 uint64 busy_end; // BUSY のアサート終了時刻 -}; -extern OPMDevice *gOPM; + ADPCMDevice *adpcm {}; + FDCDevice *fdc {}; +};