--- nono/vm/pluto.cpp 2026/04/29 17:04:59 1.1.1.7 +++ nono/vm/pluto.cpp 2026/04/29 17:05:10 1.1.1.8 @@ -4,14 +4,19 @@ // Licensed under nono-license.txt // +// +// Pluto-X (独自の仮想ボード) +// + #include "pluto.h" -#include "aout.h" #include "mainapp.h" #include "mpu680x0.h" #include "ram.h" -std::unique_ptr gPluto; +// グローバル参照用 +PlutoDevice *gPluto; +// コンストラクタ PlutoDevice::PlutoDevice() : inherited("Pluto") { @@ -19,12 +24,15 @@ PlutoDevice::PlutoDevice() devlen = 0x2000; } +// デストラクタ PlutoDevice::~PlutoDevice() { + gPluto = NULL; } +// リセット void -PlutoDevice::ResetHard() +PlutoDevice::ResetHard(bool poweron) { // XXX not yet m_count = 0; @@ -294,6 +302,6 @@ PlutoDevice::write_8_benchmark(uint32 ad benchmark_start(data); break; default: - PANIC("not impl"); + VMPANIC("not impl"); } }