--- nono/vm/crtc2.h 2026/04/29 17:05:10 1.1.1.8 +++ nono/vm/crtc2.h 2026/04/29 17:05:17 1.1.1.9 @@ -13,6 +13,8 @@ #include "device.h" #include "event.h" +class Renderer; + class CRTC2Device : public IODevice { using inherited = IODevice; @@ -20,6 +22,7 @@ class CRTC2Device : public IODevice CRTC2Device(); virtual ~CRTC2Device() override; + bool Init() override; void ResetHard(bool poweron) override; protected: @@ -39,7 +42,7 @@ class CRTC2Device : public IODevice // レジスタ uint8 reg[40] {}; + Renderer *renderer {}; + Event vdisp_event { this }; }; - -extern CRTC2Device *gCRTC2;