Fix off-by-one error (and missing store op)

master
LemonBoy 2020-01-15 20:03:41 +01:00
parent ede28755b6
commit e8012740b9
1 changed files with 6 additions and 4 deletions

View File

@ -78,9 +78,10 @@ pub fn __aeabi_uldivmod() callconv(.Naked) void {
\\ push {r4, lr}
\\ sub sp, #16
\\ add r4, sp, #8
\\ str r4, [sp]
\\ bl __udivmoddi4
\\ ldr r3, [sp, #8]
\\ ldr r4, [sp, #12]
\\ ldr r2, [sp, #8]
\\ ldr r3, [sp, #12]
\\ add sp, #16
\\ pop {r4, pc}
:
@ -113,9 +114,10 @@ pub fn __aeabi_ldivmod() callconv(.Naked) void {
\\ push {r4, lr}
\\ sub sp, #16
\\ add r4, sp, #8
\\ str r4, [sp]
\\ bl __divmoddi4
\\ ldr r3, [sp, #8]
\\ ldr r4, [sp, #12]
\\ ldr r2, [sp, #8]
\\ ldr r3, [sp, #12]
\\ add sp, #16
\\ pop {r4, pc}
: