aboutsummaryrefslogtreecommitdiff
path: root/py/asmthumb.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-20 14:30:30 +1000
committerDamien George <damien@micropython.org>2022-05-23 14:21:16 +1000
commit94955e8e3d7c6ca264c72218fdfc8e4716bb693f (patch)
tree3e011140292fcf285b173c9e446579e02a3f0a2c /py/asmthumb.h
parent8af5e2551fb2605c03e36400003feccb6d1acafd (diff)
py/asm: Add ASM_LOAD16_REG_REG_OFFSET macro for load-u16 with offset.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/asmthumb.h')
-rw-r--r--py/asmthumb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/asmthumb.h b/py/asmthumb.h
index 3ef0eb443..320861999 100644
--- a/py/asmthumb.h
+++ b/py/asmthumb.h
@@ -415,6 +415,7 @@ void asm_thumb_b_rel12(asm_thumb_t *as, int rel);
#define ASM_LOAD_REG_REG_OFFSET(as, reg_dest, reg_base, word_offset) asm_thumb_ldr_reg_reg_i12_optimised((as), (reg_dest), (reg_base), (word_offset))
#define ASM_LOAD8_REG_REG(as, reg_dest, reg_base) asm_thumb_ldrb_rlo_rlo_i5((as), (reg_dest), (reg_base), 0)
#define ASM_LOAD16_REG_REG(as, reg_dest, reg_base) asm_thumb_ldrh_rlo_rlo_i5((as), (reg_dest), (reg_base), 0)
+#define ASM_LOAD16_REG_REG_OFFSET(as, reg_dest, reg_base, uint16_offset) asm_thumb_ldrh_reg_reg_i12_optimised((as), (reg_dest), (reg_base), (uint16_offset))
#define ASM_LOAD32_REG_REG(as, reg_dest, reg_base) asm_thumb_ldr_rlo_rlo_i5((as), (reg_dest), (reg_base), 0)
#define ASM_STORE_REG_REG(as, reg_src, reg_base) asm_thumb_str_rlo_rlo_i5((as), (reg_src), (reg_base), 0)