From bee55e515c9b62a8c369dea9b8566aaaf1a6c70d Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sun, 11 Apr 2010 13:08:02 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@44725 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/DebugMemory.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui/DebugMemory.c') diff --git a/gui/DebugMemory.c b/gui/DebugMemory.c index 4dff00d8..cf5b5363 100644 --- a/gui/DebugMemory.c +++ b/gui/DebugMemory.c @@ -45,7 +45,7 @@ static void UpdateMemViewDlg() { MemViewAddress &= 0x1fffff; - sprintf(buftext, "%.8X", MemViewAddress); + sprintf(buftext, "%.8X", MemViewAddress | 0x80000000); widget = glade_xml_get_widget(xml, "entry_address"); gtk_entry_set_text(GTK_ENTRY(widget), buftext); @@ -59,7 +59,7 @@ static void UpdateMemViewDlg() { buftext[16] = '\0'; while (start < end) { - sprintf(bufaddr, "%.8X", start); + sprintf(bufaddr, "%.8X", start | 0x80000000); for (i = 0; i < 16; i++) { buftext[i] = psxMs8(start + i); @@ -113,7 +113,7 @@ static void MemView_Dump() { gtk_widget_show(label); start_edit = gtk_entry_new_with_max_length(8); - sprintf(buf, "%.8X", MemViewAddress); + sprintf(buf, "%.8X", MemViewAddress | 0x80000000); gtk_entry_set_text(GTK_ENTRY(start_edit), buf); gtk_table_attach(GTK_TABLE(table), start_edit, 1, 2, 0, 1, 0, 0, 5, 5); gtk_widget_show(start_edit); @@ -190,7 +190,7 @@ static void MemView_Patch() { gtk_widget_show(label); addr_edit = gtk_entry_new_with_max_length(8); - sprintf(buf, "%.8X", MemViewAddress); + sprintf(buf, "%.8X", MemViewAddress | 0x80000000); gtk_entry_set_text(GTK_ENTRY(addr_edit), buf); gtk_table_attach(GTK_TABLE(table), addr_edit, 1, 2, 0, 1, 0, 0, 5, 5); gtk_widget_show(addr_edit); -- cgit v1.2.3