X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcommon%2Fmemory.h;h=f7911f76da98674b5ef496eed8e0d86cd4c8f705;hb=93c2708beede1eae6700f622279560ac2620290e;hp=cbb9eb8656e00254af1f8b1919352f1d5ccb413d;hpb=c7d14532b034286e990bc28c994fa20b23aca95a;p=emu8051.git diff --git a/src/common/memory.h b/src/common/memory.h index cbb9eb8..f7911f7 100644 --- a/src/common/memory.h +++ b/src/common/memory.h @@ -43,9 +43,15 @@ enum mem_id_t { MEM_ID_COUNT }; +#define DISPLAY_ERROR_NO 0 +#define DISPLAY_ERROR_YES 1 + void memory_init(void); +int +memory_check_address(enum mem_id_t id, unsigned long address, int display_error); + u_int8_t * memory_getbuf(enum mem_id_t id, unsigned long address); @@ -86,6 +92,6 @@ uint16_t pgm_read_addr16(uint16_t base); void -DumpMem(unsigned int address, int size, int memory_id); +memory_dump(unsigned int address, int size, int memory_id); #endif /* MEMORY_H */