diff options
Diffstat (limited to 'src/vm_arm.dasc')
-rw-r--r-- | src/vm_arm.dasc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vm_arm.dasc b/src/vm_arm.dasc index 9db3b827..8f723f21 100644 --- a/src/vm_arm.dasc +++ b/src/vm_arm.dasc | |||
@@ -543,9 +543,8 @@ static void build_subroutines(BuildCtx *ctx) | |||
543 | |1: | 543 | |1: |
544 | | beq ->cont_ffi_callback // cont = 1: return from FFI callback. | 544 | | beq ->cont_ffi_callback // cont = 1: return from FFI callback. |
545 | | // cont = 0: tailcall from C function. | 545 | | // cont = 0: tailcall from C function. |
546 | | ldr CARG3, [BASE, FRAME_FUNC] | 546 | | sub CARG4, CARG4, #16 |
547 | | sub CARG4, CARG4, #16 | 547 | | sub RC, CARG4, BASE |
548 | | sub RC, CARG4, BASE | ||
549 | | b ->vm_call_tail | 548 | | b ->vm_call_tail |
550 | |.endif | 549 | |.endif |
551 | | | 550 | | |
@@ -3749,7 +3748,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | |||
3749 | case BC_TSETR: | 3748 | case BC_TSETR: |
3750 | | decode_RB8 RB, INS | 3749 | | decode_RB8 RB, INS |
3751 | | decode_RC8 RC, INS | 3750 | | decode_RC8 RC, INS |
3752 | | // RA = dst*8, RB = table*8, RC = key*8 | 3751 | | // RA = src*8, RB = table*8, RC = key*8 |
3753 | | ldr TAB:CARG2, [BASE, RB] | 3752 | | ldr TAB:CARG2, [BASE, RB] |
3754 | | ldr CARG3, [BASE, RC] | 3753 | | ldr CARG3, [BASE, RC] |
3755 | | ldrb INS, TAB:CARG2->marked | 3754 | | ldrb INS, TAB:CARG2->marked |