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