--- nono/vm/sio.h 2026/04/29 17:04:36 1.1.1.4 +++ nono/vm/sio.h 2026/04/29 17:04:50 1.1.1.6 @@ -15,16 +15,17 @@ class SIODevice using inherited = uPD7201Device; public: SIODevice(); - ~SIODevice() override; + virtual ~SIODevice() override; - void ResetHard() override; + // BusIO インタフェース + // (内蔵 ROM からのアクセス用に特別に public にしてある) + uint64 Read(uint32 offset); + uint64 Write(uint32 offset, uint32 data); protected: // BusIO インタフェース static const uint32 NPORT = 4; - uint64 Read(uint32 addr); - uint64 Write(uint32 addr, uint32 data); - uint64 Peek(uint32 addr); + uint64 Peek(uint32 offset); private: void Interrupt() override;