summaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-11-19 14:06:15 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-11-19 14:06:15 +0100
commitabb6c10f3a5be99396c303e60d286606ddc72e17 (patch)
tree0b3316ca032be864cdb10cfca15c12f57bdda9c0 /memory.h
parentee8bd1d0bd8f243cba595623050815afe411b7b0 (diff)
Implement memory load/store operations
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/memory.h b/memory.h
index e5bd073..80de90b 100644
--- a/memory.h
+++ b/memory.h
@@ -20,7 +20,10 @@ struct memory {
#define IMAGE_BASE_UNINITIALIZED UINT32_MAX
-extern uint8_t memory_get_byte(struct memory *mem, int32_t offset);
+extern uint8_t memory_get_byte(struct memory *mem, int32_t addr);
+extern void memory_set_byte(struct memory *mem, int32_t addr, uint8_t data);
+extern uint32_t memory_get_word(struct memory *mem, int32_t addr);
+extern void memory_set_word(struct memory *mem, int32_t addr, uint32_t data);
extern void memory_dump(struct memory *mem, uint32_t offset, size_t count);