summaryrefslogtreecommitdiff
path: root/gui/DebugMemory.c
diff options
context:
space:
mode:
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);