--- nono/vm/printer.cpp 2026/04/29 17:04:36 1.1.1.2 +++ nono/vm/printer.cpp 2026/04/29 17:04:42 1.1.1.3 @@ -5,6 +5,7 @@ // #include "printer.h" +#include "mpu.h" PrinterDevice::PrinterDevice() { @@ -22,6 +23,7 @@ uint64 PrinterDevice::Read8(uint32 addr) { // 書き込み専用 + gMPU->AddCycle(7); // InsideOut p.135 return (uint64)-1; } @@ -29,12 +31,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: