Shorten memory_ functions prefix to mem_ in memory.c
[emu8051.git] / src / gtk / pgmwin.c
index 2bd00d9..6cec8fb 100644 (file)
@@ -261,14 +261,14 @@ pgmwin_refresh(void)
                        int2asciihex(address, str, 4);
                        gtk_list_store_set(store, &iter, COL_ADDR, str, -1);
 
-                       opcode = memory_read8(PGM_MEM_ID, address);
+                       opcode = mem_read8(PGM_MEM_ID, address);
                        inst_size = cpu8051_get_instruction_size(opcode);
 
                        /* Display instruction hex bytes. */
                        for (k = 0, col_id = COL_B0; k < 3; k++, col_id++) {
                                if (k < inst_size)
-                                       int2asciihex(memory_read8(PGM_MEM_ID,
-                                                                 address + k),
+                                       int2asciihex(mem_read8(PGM_MEM_ID,
+                                                              address + k),
                                                     str, 2);
                                else
                                        str[0] = '\0';