projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more error checking for CLI version arguments
[emu8051.git]
/
src
/
common
/
memory.h
diff --git
a/src/common/memory.h
b/src/common/memory.h
index
cbb9eb8
..
9b3bae1
100644
(file)
--- a/
src/common/memory.h
+++ b/
src/common/memory.h
@@
-43,9
+43,15
@@
enum mem_id_t {
MEM_ID_COUNT
};
MEM_ID_COUNT
};
+#define DISPLAY_ERROR_NO 0
+#define DISPLAY_ERROR_YES 1
+
void
memory_init(void);
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);
u_int8_t *
memory_getbuf(enum mem_id_t id, unsigned long address);