--- nono/vm/scc.cpp 2026/04/29 17:04:42 1.1.1.4 +++ nono/vm/scc.cpp 2026/04/29 17:04:45 1.1.1.5 @@ -5,7 +5,8 @@ // #include "scc.h" -#include "mpu680x0.h" +#include "interrupt.h" +#include "mpu.h" // IODevice // | @@ -200,6 +201,13 @@ SCCDevice::WriteCtrl(struct SIO::channel chan->ptr = 0; break; + case 10: // WR10 + putlog(2, "WR%d%s <- $%02x (未実装)", chan->ptr, chan->name, data); + chan->wr10 = data; + // アクセス後は WR0 へ戻す + chan->ptr = 0; + break; + case 11: // WR11 putlog(2, "WR%d%s <- $%02x (未実装)", chan->ptr, chan->name, data); chan->wr11 = data; @@ -247,5 +255,12 @@ void SCCDevice::Interrupt() { putlog(0, "割り込み(未実装)"); - gMPU680x0->Interrupt(this, 5, 0x50/*XXX*/); +// gInterrupt->Raise(this); +} + +// 割り込みアクノリッジ +int +SCCDevice::InterruptAcknowledge() +{ + return 0x50; /* XXX 実際は WR2 とか要因で変わる */ }