--- nono/wx/wxdumpmonitor.cpp 2026/04/29 17:05:16 1.1.1.13 +++ nono/wx/wxdumpmonitor.cpp 2026/04/29 17:05:23 1.1.1.14 @@ -246,7 +246,7 @@ WXMemdumpWindow::UpdateAddr() title = _("Main Memory Dump"); } - uint32 addr = memdump->GetAddr(); + uint32 addr = memdump->GetAddr().Addr(); std::string addrstr = strhex(addr, width); // EVT_TEXT を起こさず変更する @@ -405,11 +405,9 @@ WXMemdumpWindow::OnDClick(wxMouseEvent& uint32 data = dlg->GetData(); // 更新 - uint64 r = memdump->Poke(addr, data, len); - if ((int64)r < 0) { + if (memdump->Poke(addr, data, len) == false) { ::wxMessageBox(_("Could not edit"), _("Memory Edit"), wxICON_EXCLAMATION | wxOK | wxOK_DEFAULT, this); - return; } } } @@ -437,7 +435,7 @@ WXMemdumpWindow::GetAddrAtHexdump(int x, return (uint64)-1; } - return memdump->GetAddr() + (y * memdump->GetStride()) + x; + return memdump->GetAddr().Addr() + (y * memdump->GetStride()) + x; } // 32bit ページテーブル画面のテキスト座標 (x, y) に対応するアドレスを返す。 @@ -450,7 +448,7 @@ WXMemdumpWindow::GetAddrAtPageShort(int if (x >= 19 + 8) { return (uint64)-1; } - return memdump->GetAddr() + y * 4; + return memdump->GetAddr().Addr() + y * 4; } // 逆アセンブル画面のテキスト座標 (x, y) に対応するアドレスを返す。 @@ -478,7 +476,7 @@ WXMemdumpWindow::GetAddrAtDisasm(int x, return (uint64)-1; } - return memdump->GetAddr() + yaddr + x; + return memdump->GetAddr().Addr() + yaddr + x; } // セレクション番号からフォーマット番号への変換