--- nono/vm/ssg.h 2026/04/29 17:05:28 1.1 +++ nono/vm/ssg.h 2026/04/29 17:05:59 1.1.1.3 @@ -11,7 +11,6 @@ #pragma once #include "device.h" -#include "monitor.h" // レジスタ struct SSG @@ -106,16 +105,16 @@ class SSGDevice : public IODevice busdata Peek1(uint32 addr) override; private: - DECLARE_MONITOR_CALLBACK(MonitorUpdate); + DECLARE_MONITOR_SCREEN(MonitorScreen); uint32 GetReg(uint32 n) const; uint32 regno {}; SSG reg {}; - Monitor monitor { this }; + Monitor *monitor {}; }; -static inline SSGDevice *GetSSGDevice() { +inline SSGDevice *GetSSGDevice() { return Object::GetObject(OBJ_SSG); }