--- nono/vm/vm_x68k.h 2026/04/29 17:04:32 1.1 +++ nono/vm/vm_x68k.h 2026/04/29 17:05:25 1.1.1.11 @@ -1,43 +1,24 @@ // // nono -// Copyright (C) 2020 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt +// + +// +// VM (X68030) // #pragma once #include "vm.h" -class VM_X68030 : public VM +class VM_X68030 final : public VM { - typedef VM inherited; + using inherited = VM; public: VM_X68030(); - virtual ~VM_X68030(); - - // 電源ボタンを押す - virtual void PowerButton(); - - // 電源ボタンの状態を取得。オンなら true。 - bool IsPowerButton() const { return power_button; } - - private: - // 電源ボタンの状態。オンなら true。 - bool power_button = false; - - // デバイス - std::unique_ptr xiospace; -}; - -class VM_RXZ : public VM -{ - typedef VM inherited; - public: - VM_RXZ(); - virtual ~VM_RXZ(); - - // 電源ボタンを押す。 - virtual void PowerButton(); + ~VM_X68030() override; private: - std::unique_ptr human68k; + std::unique_ptr pHuman68k {}; };