--- nono/vm/rp5c15.cpp 2026/04/29 17:05:29 1.1.1.15 +++ nono/vm/rp5c15.cpp 2026/04/29 17:06:00 1.1.1.18 @@ -11,7 +11,9 @@ // アラームは未実装 #include "rp5c15.h" +#include "event.h" #include "mfp.h" +#include "monitor.h" #include "power.h" // コンストラクタ @@ -23,9 +25,9 @@ RP5C15Device::RP5C15Device() // X68k は通常ローカルタイム (というか JST) で使用する前提 use_localtime = true; - monitor.func = ToMonitorCallback(&RP5C15Device::MonitorUpdate); - monitor.SetSize(38, 22); - monitor.Regist(ID_MONITOR_RTC); + monitor = gMonitorManager->Regist(ID_MONITOR_RTC, this); + monitor->SetCallback(&RP5C15Device::MonitorScreen); + monitor->SetSize(38, 22); } // デストラクタ @@ -265,7 +267,7 @@ RP5C15Device::PokePort(uint32 offset, ui } void -RP5C15Device::MonitorUpdate(Monitor *, TextScreen& screen) +RP5C15Device::MonitorScreen(Monitor *, TextScreen& screen) { int x = 18; int y = 0;