--- nono/vm/rp5c15.cpp 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/rp5c15.cpp 2026/04/29 17:04:42 1.1.1.5 @@ -5,6 +5,7 @@ // #include "rp5c15.h" +#include "mpu.h" #include // アラームは未実装 @@ -17,7 +18,7 @@ RP5C15Device::RP5C15Device() devname = "RTC"; devaddr = 0xe8a000; devlen = 0x2000; - monitor.Init(30, 17); + monitor_size = nnSize(30, 17); } RP5C15Device::~RP5C15Device() @@ -43,6 +44,8 @@ RP5C15Device::Read(uint32 addr) uint8 data; int n; + gMPU->AddCycle(29); // InsideOut p.135 + // バンクを展開する n = bank * 0x10 + addr; @@ -75,6 +78,8 @@ RP5C15Device::Write(uint32 addr, uint32 { int n; + gMPU->AddCycle(38); // InsideOut p.135 + // バンクを展開する n = bank * 0x10 + addr; @@ -243,8 +248,8 @@ RP5C15Device::Peek(uint32 addr) } } -bool -RP5C15Device::MonitorUpdate() +void +RP5C15Device::MonitorUpdate(TextScreen& monitor) { int x; int y; @@ -298,8 +303,6 @@ RP5C15Device::MonitorUpdate() y++; monitor.Print(x, y++, "cnt %2d", rtc.cnt); - - return true; } // 32Hz クロック入力