--- nono/vm/mk48t02.h 2026/04/29 17:05:18 1.1.1.13 +++ nono/vm/mk48t02.h 2026/04/29 17:05:25 1.1.1.14 @@ -10,10 +10,9 @@ #pragma once -#include "device.h" +#include "rtc.h" #include "mappedfile.h" #include "monitor.h" -#include "rtc.h" // MK48T02 の時計部分のレジスタと内部状態 struct MK48T02Clock @@ -117,7 +116,7 @@ class MK48T02Device : public RTCDevice using inherited = RTCDevice; public: MK48T02Device(); - virtual ~MK48T02Device() override; + ~MK48T02Device() override; bool Init() override; @@ -132,10 +131,10 @@ class MK48T02Device : public RTCDevice // BusIO インタフェース // (内蔵 ROM からのアクセス用に特別に public にしてある) - uint64 Read(uint32 offset); - uint64 Write(uint32 offset, uint32 data); - uint64 Peek(uint32 offset); - uint64 Poke(uint32 offset, uint32 data) override; + busdata Read(uint32 offset); + busdata Write(uint32 offset, uint32 data); + busdata Peek(uint32 offset); + bool Poke(uint32 offset, uint32 data) override; // 内蔵カウンタへのアクセス。 // ラッチカウンタではないことに注意。