summaryrefslogtreecommitdiff
path: root/gui/DebugMemory.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-04-11 13:08:02 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-04-11 13:08:02 +0000
commitbee55e515c9b62a8c369dea9b8566aaaf1a6c70d (patch)
treef8041974cbdf05296e40fcea0a9d2643cb2ba75b /gui/DebugMemory.c
parent14c10b6945d0a9a323685e5b36429cbb62c3496b (diff)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@44725 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui/DebugMemory.c')
-rw-r--r--gui/DebugMemory.c8
1 files changed, 4 insertions, 4 deletions
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);