--- nono/vm/crtc2.h 2026/04/29 17:05:24 1.1.1.10 +++ nono/vm/crtc2.h 2026/04/29 17:05:50 1.1.1.13 @@ -11,8 +11,8 @@ #pragma once #include "device.h" -#include "event.h" +class LunafbDevice; class Renderer; class CRTC2Device : public IODevice @@ -28,21 +28,25 @@ class CRTC2Device : public IODevice protected: // BusIO インタフェース static const uint32 NPORT = 2; - busdata Read(uint32 offset); - busdata Write(uint32 offset, uint32 data); - busdata Peek(uint32 offset); + busdata ReadPort(uint32 offset); + busdata WritePort(uint32 offset, uint32 data); + busdata PeekPort(uint32 offset); + bool PokePort(uint32 offset, uint32 data); private: // 垂直表示期間イベント - void VDispCallback(Event& ev); + void VDispCallback(Event *); // アドレスレジスタ - int ar {}; + uint ar {}; // レジスタ uint8 reg[40] {}; + uint vdisp_state {}; + + LunafbDevice *lunafb {}; Renderer *renderer {}; - Event vdisp_event { this }; + Event *vdisp_event {}; };