--- nono/vm/mpu88xx0.h 2026/04/29 17:04:50 1.1.1.7 +++ nono/vm/mpu88xx0.h 2026/04/29 17:04:55 1.1.1.9 @@ -15,12 +15,12 @@ class MPU88xx0Device : public MPUDevice { using inherited = MPUDevice; public: - MPU88xx0Device(uint32 reset_vector); + MPU88xx0Device(); virtual ~MPU88xx0Device() override; bool Init() override; - - void MonitorUpdate(TextScreen&) override; + bool PowerOn() override; + void ResetHard() override; // MPU を vtime [nsec] 分実行する uint32 Run(uint32 vtime) override { return cpu->Run(vtime); } @@ -48,25 +48,11 @@ class MPU88xx0Device : public MPUDevice m88kcpu *GetCPU() const { return cpu.get(); } private: - // イベントコールバック - void Callback(Event& ev); + // レジスタモニター + DECLARE_MONITOR_CALLBACK(MonitorUpdate); + Monitor monitor { this }; std::unique_ptr cpu {}; }; -// ATC モニタ -class MPU88200ATC : public Object -{ - public: - MPU88200ATC(m88200 *cmmu); - ~MPU88200ATC() override { } - - void MonitorUpdate(TextScreen&) override; - - private: - m88200 *cmmu {}; -}; - -extern std::unique_ptr gMPU88200ATC[2]; - #define gMPU88xx0 (dynamic_cast(gMPU.get()))