--- nono/vm/vm_x68k.h 2026/04/29 17:04:42 1.1.1.3 +++ nono/vm/vm_x68k.h 2026/04/29 17:04:53 1.1.1.6 @@ -10,7 +10,7 @@ #include "human68k.h" #include "xiospace.h" -class VM_X68030 : public VM +class VM_X68030 final : public VM { using inherited = VM; public: @@ -23,15 +23,18 @@ class VM_X68030 : public VM // 電源ボタンの状態を取得。オンなら true。 bool IsPowerButton() const override { return power_button; } + // MPU の RESET 命令によるリセット + void ResetByMPU() override; + + // ブートページを切り替える。 + void SwitchBootPage(Device *parent, bool isrom) override; + private: // 電源ボタンの状態。オンなら true。 bool power_button {}; - - // デバイス - std::unique_ptr xiospace {}; }; -class VM_RXZ : public VM +class VM_RXZ final : public VM { using inherited = VM; public: @@ -41,6 +44,9 @@ class VM_RXZ : public VM // 電源ボタンを押す。 void PowerButton() override; + // ブートページを切り替える。 + void SwitchBootPage(Device *parent, bool isrom) override; + private: std::unique_ptr human68k {}; };