diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-09 15:29:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-09 15:29:54 +0000 |
commit | 4dea922610c8ea6af285cd49b0a531d4941d820f (patch) | |
tree | 9d10a279f23eb71d9ba9cd13e6da69b1ee77d03d /py/asmarm.c | |
parent | df1637c580457234d805154efea1c51a83b1136a (diff) |
py: Adjust some spaces in code style/format, purely for consistency.
Diffstat (limited to 'py/asmarm.c')
-rw-r--r-- | py/asmarm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/asmarm.c b/py/asmarm.c index cf90d60c7..441e04c1b 100644 --- a/py/asmarm.c +++ b/py/asmarm.c @@ -223,7 +223,7 @@ void asm_arm_entry(asm_arm_t *as, int num_locals) { | 1 << ASM_ARM_REG_R8; // Only adjust the stack if there are more locals than usable registers - if(num_locals > 3) { + if (num_locals > 3) { as->stack_adjust = num_locals * 4; // Align stack to 8 bytes if (num_locals & 1) { @@ -424,12 +424,12 @@ void asm_arm_b_label(asm_arm_t *as, uint label) { void asm_arm_bl_ind(asm_arm_t *as, void *fun_ptr, uint fun_id, uint reg_temp) { // If the table offset fits into the ldr instruction - if(fun_id < (0x1000 / 4)) { + if (fun_id < (0x1000 / 4)) { emit_al(as, asm_arm_op_mov_reg(ASM_ARM_REG_LR, ASM_ARM_REG_PC)); // mov lr, pc emit_al(as, 0x597f000 | (fun_id << 2)); // ldr pc, [r7, #fun_id*4] return; } - + emit_al(as, 0x59f0004 | (reg_temp << 12)); // ldr rd, [pc, #4] // Set lr after fun_ptr emit_al(as, asm_arm_op_add_imm(ASM_ARM_REG_LR, ASM_ARM_REG_PC, 4)); // add lr, pc, #4 |