summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-11-08 13:46:40 +0000
committerCamil Staps2016-11-08 13:46:40 +0000
commit6ad63a443bfad0116e34879897dc23bda7aa68d6 (patch)
tree0b24a220c8c3492940c7e642855b5c0743e86df8
parentAlso exported labels need to be aligned & thumb-funced (diff)
Indirect jsr is always with a register, hence +7 (not +9)
-rw-r--r--cgthumb2was.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgthumb2was.c b/cgthumb2was.c
index b243fa5..b6963b4 100644
--- a/cgthumb2was.c
+++ b/cgthumb2was.c
@@ -1498,7 +1498,7 @@ static void w_as_jsr_instruction (struct instruction *instruction)
case P_INDIRECT_WITH_UPDATE:
w_as_instruction_without_parameters (".align");
w_as_opcode ("add");
- fprintf (assembly_file,"lr,pc,#9");
+ fprintf (assembly_file,"lr,pc,#7");
w_as_newline_after_instruction();
w_as_opcode ("str");
fprintf (assembly_file,"lr,[sp,#%d]!",instruction->instruction_parameters[1].parameter_offset);