--- nono/vm/human_mi.cpp 2026/04/29 17:04:58 1.1.1.1 +++ nono/vm/human_mi.cpp 2026/04/29 17:05:14 1.1.1.3 @@ -4,11 +4,14 @@ // Licensed under nono-license.txt // -#include "human_mi.h" +// +// Human68k? +// +#include "human_mi.h" +#include "m88100acc.h" #include "mpu680x0.h" #include "mpu88xx0.h" -#include "m88100acc.h" #include "scheduler.h" bool human_m680x0_fline_callback(m68kcpu *cpu, void *arg); @@ -163,7 +166,7 @@ HumanMI::Dispatch() if (r == false) { // 未実装システムコール - putlog(0, "Unimplemented system call $%02X", scid); + putlog(0, "system call $%02X (NOT IMPLEMENTED)", scid); RequestExit(0); return false; } @@ -177,8 +180,7 @@ HumanMI::Dispatch() void HumanMI::RequestExit(int code) { - gMPU->Release(); - gScheduler->RequestExit(); + gScheduler->Terminate(); } // システムコールの実装 @@ -223,7 +225,9 @@ HumanMI::DOS_PRINT() // プロセス終了する感じ。 return false; } - if (c == 0) break; + if (c == 0) { + break; + } printf("%c", (int)c); } Result(0); @@ -397,4 +401,3 @@ human_m88xx0_fline_callback(m88kcpu *cpu auto *human = (HumanMD_m88xx0 *)arg; return human->SysCallEntry(); } -