--- nono/vm/mpu680x0.h 2026/04/29 17:04:52 1.1.1.7 +++ nono/vm/mpu680x0.h 2026/04/29 17:04:55 1.1.1.8 @@ -22,7 +22,6 @@ class MPU680x0Device : public MPUDevice bool Init() override; bool PowerOn() override; void ResetHard() override; - void MonitorUpdate(TextScreen&) override; // MPU を vtime [nsec] 分実行する uint32 Run(uint32 vtime) override; @@ -71,7 +70,15 @@ class MPU680x0Device : public MPUDevice void Callback(Event& ev); // 割り込み用イベント - Event event {}; + Event event { this }; + + // レジスタモニター + DECLARE_MONITOR_CALLBACK(MonitorUpdateReg); + Monitor reg_monitor { this }; + + // ATC モニター + DECLARE_MONITOR_CALLBACK(MonitorUpdateATC); + Monitor atc_monitor { this }; // 割り込み確定のためのディレイ [nsec] uint64 intdelay {}; @@ -79,19 +86,4 @@ class MPU680x0Device : public MPUDevice m68kcpu *cpu {}; }; -// ATC モニタ -class MPUATC : public Object -{ - public: - MPUATC(m68kcpu *cpu); - ~MPUATC() override { } - - void MonitorUpdate(TextScreen&) override; - - private: - m68kcpu *cpu {}; -}; - -extern std::unique_ptr gMPUATC; - #define gMPU680x0 (dynamic_cast(gMPU.get()))