--- nono/vm/vm.h 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/vm.h 2026/04/29 17:04:42 1.1.1.4 @@ -72,12 +72,16 @@ class VM // MPU の RESET 命令によるリセット void ResetSoft(); + // BusErr デバイスを取得する + BusErrDevice *GetBusErrDevice() const { return buserr.get(); } + protected: // VM の全デバイスの電源をオン bool DevicePowerOn(); - std::unique_ptr buserr; - void (*poweroff_callback)() = NULL; + std::unique_ptr buserr {}; + + void (*poweroff_callback)() {}; }; extern std::unique_ptr gVM;