--- nono/vm/rp5c15.h 2026/04/29 17:04:53 1.1.1.8 +++ nono/vm/rp5c15.h 2026/04/29 17:04:55 1.1.1.9 @@ -7,6 +7,7 @@ #pragma once #include "device.h" +#include "monitor.h" #include "rtc.h" struct RP5C15 @@ -110,8 +111,6 @@ class RP5C15Device : public RTCDevice bool Init() override; - void MonitorUpdate(TextScreen&) override; - // 32Hz クロック入力 void ClockIn() override; @@ -126,6 +125,8 @@ class RP5C15Device : public RTCDevice // レジスタを更新 void UpdateReg(uint32); + DECLARE_MONITOR_CALLBACK(MonitorUpdate); + // レジスタ RP5C15 reg {}; @@ -137,4 +138,6 @@ class RP5C15Device : public RTCDevice bool clkout {}; // ALARM 端子の状態 (true なら 'H') bool alarmout {}; + + Monitor monitor { this }; };