diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-11-22 11:32:41 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-11-22 11:32:41 +0100 |
commit | bba31d7fbc06bfdac175e38649ca9b2331e44a5a (patch) | |
tree | 729ed8e8bbd644c37a450f9ffb7e21ff1c17b886 /memory.h | |
parent | 229407408827ed49ce2e5cb2ce6d01189832b354 (diff) |
Use generic load/store functions in instructions
Diffstat (limited to 'memory.h')
-rw-r--r-- | memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |