--- nono/vm/mpscc.h 2026/04/29 17:05:13 1.1.1.2 +++ nono/vm/mpscc.h 2026/04/29 17:05:17 1.1.1.3 @@ -29,6 +29,7 @@ #endif class HostCOMDevice; +class InterruptDevice; // 1チャンネル分の共通部分 class MPSCCChan @@ -510,7 +511,7 @@ class MPSCCDevice : public IODevice static const int COM_CH = 0; public: - MPSCCDevice(const std::string& objname_); + MPSCCDevice(); ~MPSCCDevice() override; bool Create() override; @@ -604,10 +605,12 @@ class MPSCCDevice : public IODevice // 本当は共通層でやることではないがどう考えても同じコードになるので。 std::unique_ptr hostcom /*{}*/; - // モニタ (更新関数は継承側で用意する) - Monitor monitor { this }; - // SR0 のログ対策 (sio.cpp::ReadCtrl 参照) int sr0_logphase {}; uint32 sr0_lastread {}; + + InterruptDevice *interrupt {}; + + // モニタ (更新関数は継承側で用意する) + Monitor monitor { this }; };