diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-12 16:59:29 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-12 16:59:29 +0100 |
commit | 91cfd414c052179ad41755cc7e5085be1a365c2d (patch) | |
tree | 6ca19f158f2df040955b077c801be03e604644fe /py/asmarm.h | |
parent | 1ef2348df0c15f9924d3b5be798fd20805ccd5aa (diff) |
py: Implement native load for viper.
Viper can now do: ptr8(buf)[0], which loads a byte from a buffer using
machine instructions.
Diffstat (limited to 'py/asmarm.h')
-rw-r--r-- | py/asmarm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/asmarm.h b/py/asmarm.h index d7180beda..378b67609 100644 --- a/py/asmarm.h +++ b/py/asmarm.h @@ -104,6 +104,9 @@ void asm_arm_lsl_reg_reg(asm_arm_t *as, uint rd, uint rs); void asm_arm_asr_reg_reg(asm_arm_t *as, uint rd, uint rs); // memory +void asm_arm_ldr_reg_reg(asm_arm_t *as, uint rd, uint rn); +void asm_arm_ldrh_reg_reg(asm_arm_t *as, uint rd, uint rn); +void asm_arm_ldrb_reg_reg(asm_arm_t *as, uint rd, uint rn); void asm_arm_str_reg_reg(asm_arm_t *as, uint rd, uint rm); void asm_arm_strh_reg_reg(asm_arm_t *as, uint rd, uint rm); void asm_arm_strb_reg_reg(asm_arm_t *as, uint rd, uint rm); |