--- nono/m680x0/m680x0.h 2026/04/29 17:05:48 1.1.1.2 +++ nono/m680x0/m680x0.h 2026/04/29 17:05:57 1.1.1.3 @@ -52,10 +52,10 @@ struct m680x0FPUType bool Is4060FPU() const noexcept { return (type & M680x0) != 0; } bool Is6888x() const noexcept { return (type & M6888x) != 0; } }; -static inline bool operator==(const m680x0FPUType& a, const m680x0FPUType& b) { +inline bool operator==(const m680x0FPUType& a, const m680x0FPUType& b) { return (a.type == b.type); } -static inline bool operator!=(const m680x0FPUType& a, const m680x0FPUType& b) { +inline bool operator!=(const m680x0FPUType& a, const m680x0FPUType& b) { return !(a == b); } @@ -370,15 +370,9 @@ struct m68kreg // バス状態 struct m68kbus { - // 論理アドレス。(R/W, FC2-0, Addr すべて使用) + // 論理アドレス。(サイズ, R/W, FC2-0, Addr すべて使用) busaddr laddr; - // 対応する物理アドレス (FC2, Addr のみ使用) - busaddr paddr; - - // アクセスサイズ (バイト数で表す) - uint32 size; - // データバス。 // 今の所書き込みだけで使う。読み込みデータは戻り値のみ。 uint32 data; @@ -394,9 +388,6 @@ struct m68kbus // Supervisor アクセスなら true を返す bool IsSuper() const { return laddr.IsSuper(); } - - // バスが Write なら true を返す - bool IsWrite() const { return laddr.IsWrite(); } }; // 仮