--- nono/vm/crtc.h 2026/04/29 17:05:17 1.1.1.9 +++ nono/vm/crtc.h 2026/04/29 17:05:24 1.1.1.10 @@ -133,19 +133,20 @@ class CRTCDevice : public IODevice using inherited = IODevice; public: CRTCDevice(); - virtual ~CRTCDevice() override; + ~CRTCDevice() override; bool Init() override; void ResetHard(bool poweron) override; - protected: - // BusIO インタフェース - static const uint NPORT = 0x800; - uint64 Read(uint32 offset); - uint64 Write(uint32 offset, uint32 data); - uint64 Peek(uint32 offset); + busdata Read8(uint32 offset) override; + busdata Read16(uint32 offset) override; + busdata Write8(uint32 offset, uint32 data) override; + busdata Write16(uint32 offset, uint32 data) override; + busdata Peek8(uint32 offset) override; private: + // ワード読み出し + busdata Peek16(uint32 addr) const; // レジスタへの書き込み void SetReg(uint32 offset, uint32 data); // 動作ポートへの書き込み