--- nono/vm/crtc.h 2026/04/29 17:05:14 1.1.1.8 +++ nono/vm/crtc.h 2026/04/29 17:05:17 1.1.1.9 @@ -10,9 +10,14 @@ #pragma once +#include "device.h" #include "event.h" #include "monitor.h" +class MFPDevice; +class Renderer; +class TVRAMDevice; + struct CRTC { // 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 @@ -130,6 +135,7 @@ class CRTCDevice : public IODevice CRTCDevice(); virtual ~CRTCDevice() override; + bool Init() override; void ResetHard(bool poweron) override; protected: @@ -161,11 +167,13 @@ class CRTCDevice : public IODevice // ラスターコピー指示 bool raster_copy {}; + MFPDevice *mfp {}; + Renderer *renderer {}; + TVRAMDevice *tvram {}; + Event hsync_event { this }; Event vdisp_event { this }; Event raster_event { this }; Monitor monitor { this }; }; - -extern CRTCDevice *gCRTC;