--- nono/vm/printer.cpp 2026/04/29 17:04:36 1.1.1.2 +++ nono/vm/printer.cpp 2026/04/29 17:04:50 1.1.1.4 @@ -5,6 +5,9 @@ // #include "printer.h" +#include "mpu.h" + +std::unique_ptr gPrinter; PrinterDevice::PrinterDevice() { @@ -22,6 +25,7 @@ uint64 PrinterDevice::Read8(uint32 addr) { // 書き込み専用 + gMPU->AddCycle(7); // InsideOut p.135 return (uint64)-1; } @@ -29,12 +33,15 @@ uint64 PrinterDevice::Read16(uint32 addr) { // 書き込み専用 + gMPU->AddCycle(7); // InsideOut p.135 return (uint64)-1; } uint64 PrinterDevice::Write8(uint32 addr, uint32 data) { + gMPU->AddCycle(7); // InsideOut p.135 + uint32 offset = addr - baseaddr; switch (offset) { case 0: