--- nono/vm/human_mi.h 2026/04/29 17:04:58 1.1 +++ nono/vm/human_mi.h 2026/04/29 17:05:17 1.1.1.3 @@ -4,14 +4,19 @@ // Licensed under nono-license.txt // +// +// Human68k? +// + #pragma once #include "device.h" #include "mpu.h" #include -class m68kcpu; -class m88kcpu; +class MPU680x0Device; +class MPU88xx0Device; +class Scheduler; // 謎の機種非依存 Human68k(?) システムコール class HumanMI : public Object @@ -262,7 +267,9 @@ class HumanMI : public Object void RequestExit(int code); - uint scid; // 実行中のシステムコール番号 + uint scid {}; // 実行中のシステムコール番号 + + Scheduler *scheduler {}; }; // m680x0 に合わせたインタフェース。 @@ -281,9 +288,9 @@ class HumanMD_m680x0 : public HumanMI protected: // システムコール時点の SP。 // 引数の取り出しにより変化する。 - uint32 sp; + uint32 sp {}; - m68kcpu *cpu; + MPU680x0Device *mpu {}; }; // m88xx0 に合わせたインタフェース。 @@ -302,9 +309,9 @@ class HumanMD_m88xx0 : public HumanMI protected: // システムコール時点の rS。 // 引数の取り出しにより変化する。 - uint32 rs; + uint32 rs {}; // システムコール時点の rD。 - uint32 rd; + uint32 rd {}; - m88kcpu *cpu; + MPU88xx0Device *cpu {}; };