--- nono/vm/mainbus.h 2026/04/29 17:05:29 1.1.1.4 +++ nono/vm/mainbus.h 2026/04/29 17:05:50 1.1.1.6 @@ -12,7 +12,7 @@ #include "device.h" #include "bus.h" -#include "monitor.h" +#include "textscreen.h" #include #include @@ -51,8 +51,8 @@ class AccStat static const uint SHIFT = 21; // メイン空間とバンクメモリ(1枚分)の要素数 - static const uint MAINLEN = (1 << (32 - SHIFT)); - static const uint BANKLEN = (1 << (24 - SHIFT)); + static const uint MAINLEN = (1U << (32 - SHIFT)); + static const uint BANKLEN = (1U << (24 - SHIFT)); // アクセス状況 static const uint8 WRITE = 0x01; @@ -158,7 +158,7 @@ class MainbusDevice : public MainbusBase // (GUI からのアクセスの便宜のため共通クラスのこっちに置く) alignas(8) uint8 accbank[AccStat::BANKLEN * 2] {}; - Monitor monitor_accstat { this }; + Monitor *accstat_monitor {}; }; // 上位8ビットがテーブルで表せる構造のメインバス (共通部分) @@ -183,7 +183,7 @@ class Mainbus24Device : public MainbusDe std::array devtable {}; - Monitor monitor { this }; + Monitor *monitor {}; private: inline IODevice *Decoder(uint32 addr) const;