--- nono/vm/areaset.cpp 2026/04/29 17:04:28 1.1 +++ nono/vm/areaset.cpp 2026/04/29 17:04:49 1.1.1.4 @@ -1,9 +1,13 @@ // // nono -// Copyright (C) 2017 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "areaset.h" +#include "mpu.h" + +std::unique_ptr gAreaSet; AreaSetDevice::AreaSetDevice() { @@ -17,6 +21,12 @@ AreaSetDevice::~AreaSetDevice() { } +void +AreaSetDevice::ResetHard() +{ + limit = 0; +} + uint64 AreaSetDevice::Read8(uint32 addr) { @@ -36,6 +46,8 @@ AreaSetDevice::Read16(uint32 addr) uint64 AreaSetDevice::Write8(uint32 addr, uint32 data) { + gMPU->AddCycle(7); // InsideOut p.135 + switch (addr) { case 0xe86001: putlog(0, "未実装エリアセット書き込み $%02x", data);