--- nono/debugger/branchhistory.cpp 2026/04/29 17:05:28 1.1.1.9 +++ nono/debugger/branchhistory.cpp 2026/04/29 17:05:32 1.1.1.10 @@ -9,8 +9,9 @@ // #include "branchhistory.h" -#include "m68030disasm.h" +#include "m680x0disasm.h" #include "m88100.h" +#include "monitor.h" #include "mpu64180.h" #include "vectortable.h" @@ -46,10 +47,10 @@ BranchHistory::BranchHistory(uint objid_ vectortable = GetVectorTable(); - monitor.func = ToMonitorCallback(&BranchHistory::MonitorUpdate); - monitor.SetSize(55, 1 + 32); // ヘッダ1行とエントリ数 - monitor.SetMaxHeight(1 + 256); - monitor.Regist(monitor_id); + monitor = gMonitorManager->Regist(monitor_id, this); + monitor->func = ToMonitorCallback(&BranchHistory::MonitorUpdate); + monitor->SetSize(55, 1 + 32); // ヘッダ1行とエントリ数 + monitor->SetMaxHeight(1 + 256); // hd64180 はこれを上書きする x_count = 45; @@ -431,7 +432,7 @@ BranchHistory_m88xx0::FormatEntry(const BranchHistory_hd64180::BranchHistory_hd64180(uint objid_) : inherited(objid_) { - monitor.SetSize(48, 1 + 32); // ヘッダ1行とエントリ数 + monitor->SetSize(48, 1 + 32); // ヘッダ1行とエントリ数 x_count = 38; }