--- nono/vm/areaset.cpp 2026/04/29 17:04:55 1.1.1.5 +++ nono/vm/areaset.cpp 2026/04/29 17:05:10 1.1.1.6 @@ -4,11 +4,17 @@ // Licensed under nono-license.txt // +// +// エリアセット +// + #include "areaset.h" #include "mpu.h" -std::unique_ptr gAreaSet; +// グローバル参照用 +AreaSetDevice *gAreaSet; +// コンストラクタ AreaSetDevice::AreaSetDevice() : inherited("AreaSet") { @@ -16,12 +22,15 @@ AreaSetDevice::AreaSetDevice() devlen = 0x2000; } +// デストラクタ AreaSetDevice::~AreaSetDevice() { + gAreaSet = NULL; } +// リセット void -AreaSetDevice::ResetHard() +AreaSetDevice::ResetHard(bool poweron) { limit = 0; }