summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-09-29 07:41:00 +0000
committerCamil Staps2016-09-29 07:41:00 +0000
commitc648847204dfd208b0919a3b1db5261f16d8272f (patch)
tree3e9ed4eff1d05375e9a120a5215323035ae8b3a9
parentAdd .align before pushing PC; change some bl to blx (diff)
Fix bitwise operations on SP
-rw-r--r--thumb2startup.s8
1 files changed, 6 insertions, 2 deletions
diff --git a/thumb2startup.s b/thumb2startup.s
index 2e25a28..0bf6793 100644
--- a/thumb2startup.s
+++ b/thumb2startup.s
@@ -1338,7 +1338,9 @@ print_real_node:
.thumb_func
print_real_:
mov r11,sp
- @bic sp,sp,#7 @ TODO
+ mov lr,sp
+ bic lr,lr,#7
+ mov sp,lr
bl w_print_real
mov sp,r11
ldr pc,[sp],#4
@@ -1508,7 +1510,9 @@ RtoAC:
otoa r1,printf_real_string,0
otoa r0,sprintf_buffer,0
mov r4,sp
- @and sp,sp,#-8 @ TODO
+ mov lr,sp
+ and lr,lr,#-8
+ mov sp,lr
bl sprintf
mov sp,r4
.else