diff options
author | Damien George <damien@micropython.org> | 2022-05-20 14:30:30 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-05-23 14:21:16 +1000 |
commit | 94955e8e3d7c6ca264c72218fdfc8e4716bb693f (patch) | |
tree | 3e011140292fcf285b173c9e446579e02a3f0a2c /py/asmx86.h | |
parent | 8af5e2551fb2605c03e36400003feccb6d1acafd (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/asmx86.h')
-rw-r--r-- | py/asmx86.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/asmx86.h b/py/asmx86.h index 8f1b06d22..e02e6c954 100644 --- a/py/asmx86.h +++ b/py/asmx86.h @@ -202,6 +202,7 @@ void asm_x86_call_ind(asm_x86_t *as, size_t fun_id, mp_uint_t n_args, int temp_r #define ASM_LOAD_REG_REG_OFFSET(as, reg_dest, reg_base, word_offset) asm_x86_mov_mem32_to_r32((as), (reg_base), 4 * (word_offset), (reg_dest)) #define ASM_LOAD8_REG_REG(as, reg_dest, reg_base) asm_x86_mov_mem8_to_r32zx((as), (reg_base), 0, (reg_dest)) #define ASM_LOAD16_REG_REG(as, reg_dest, reg_base) asm_x86_mov_mem16_to_r32zx((as), (reg_base), 0, (reg_dest)) +#define ASM_LOAD16_REG_REG_OFFSET(as, reg_dest, reg_base, uint16_offset) asm_x86_mov_mem16_to_r32zx((as), (reg_base), 2 * (uint16_offset), (reg_dest)) #define ASM_LOAD32_REG_REG(as, reg_dest, reg_base) asm_x86_mov_mem32_to_r32((as), (reg_base), 0, (reg_dest)) #define ASM_STORE_REG_REG(as, reg_src, reg_base) asm_x86_mov_r32_to_mem32((as), (reg_src), (reg_base), 0) |