--- nono/vm/mainbus.h 2026/04/29 17:05:17 1.1 +++ nono/vm/mainbus.h 2026/04/29 17:05:20 1.1.1.2 @@ -11,7 +11,9 @@ #pragma once #include "device.h" +#include "monitor.h" #include +#include class MainbusDevice : public IOContainerDevice { @@ -37,12 +39,21 @@ class MainbusDevice : public IOContainer // デバイステーブルをコピーする static void CopyDevtable(int dst, int src, int len); + // モニタ表示用にデバイス名を整形。(X68kIO からも使う) + static std::pair FormatDevName(const Device *dev); + static std::array devtable; static int direct_ram_size; protected: + // このアドレスを担当する次段の IODevice を返す。 IODevice *GetDevice(uint32 addr) const override; + + private: + DECLARE_MONITOR_CALLBACK(MonitorUpdate); + + Monitor monitor { this }; }; static inline MainbusDevice *GetMainbusDevice() {