summaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-11-22 11:32:41 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-11-22 11:32:41 +0100
commitbba31d7fbc06bfdac175e38649ca9b2331e44a5a (patch)
tree729ed8e8bbd644c37a450f9ffb7e21ff1c17b886 /memory.h
parent229407408827ed49ce2e5cb2ce6d01189832b354 (diff)
Use generic load/store functions in instructions
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/memory.h b/memory.h
index 80de90b..191b190 100644
--- a/memory.h
+++ b/memory.h
@@ -22,6 +22,8 @@ struct memory {
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 uint16_t memory_get_halfword(struct memory *mem, int32_t addr);
+extern void memory_set_halfword(struct memory *mem, int32_t addr, uint16_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);