--- nono/vm/mpu88xx0.cpp 2026/04/29 17:04:36 1.1.1.2 +++ nono/vm/mpu88xx0.cpp 2026/04/29 17:04:39 1.1.1.3 @@ -15,7 +15,7 @@ std::unique_ptr gMPU88200AT // コンストラクタ MPU88xx0Device::MPU88xx0Device(uint32 addr) { - monitor.Init(79, 18); + monitor_size = nnSize(79, 18); // リセットベクタアドレスは Reset() で指定するので保持しておく reset_vector = addr; @@ -70,8 +70,8 @@ MPU88xx0Device::Interrupt(Object *src, i } // モニター更新 -bool -MPU88xx0Device::MonitorUpdate() +void +MPU88xx0Device::MonitorUpdate(TextScreen& monitor) { m88100reg reg; int x; @@ -180,8 +180,6 @@ MPU88xx0Device::MonitorUpdate() monitor.Print(60, y, "dma%d(cr%2d):%08x", i, da, reg.cr[da]); y++; } - - return true; } // @@ -193,11 +191,11 @@ MPU88200ATC::MPU88200ATC(m88200 *cmmu_) { cmmu = cmmu_; - monitor.Init(65, 38); + monitor_size = nnSize(65, 38); } -bool -MPU88200ATC::MonitorUpdate() +void +MPU88200ATC::MonitorUpdate(TextScreen& monitor) { int x; int y; @@ -275,6 +273,4 @@ MPU88200ATC::MonitorUpdate() y++; } - - return true; }