From 5c968b7e09a3087e7ae29c5f122f3321635f9326 Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Mon, 27 Dec 2010 02:00:40 +0100 Subject: [PATCH] deepjit: downto 1648 --- 3_test/deepjit.s | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/3_test/deepjit.s b/3_test/deepjit.s index 58d6d23..f65b445 100644 --- a/3_test/deepjit.s +++ b/3_test/deepjit.s @@ -156,6 +156,9 @@ jit: ;r9 ... address to actual entry in defer table ;r10... address to defer table + ldil r15, prog_consts@lo + ldih r15, prog_consts@hi + ;backup defer table address mov r10, r9 ;decrement address to input by 1 @@ -319,12 +322,8 @@ vm_sub: ;case 0 1 2 3 4 5 6 7 8 9 ;48-57 vm_consts: - ;load address of program - ldil r4, prog_consts@lo - ldih r4, prog_consts@hi - ;program instruction (3) - ldw r0, 0(r4) + ldw r0, 0(r15) ;the first instr. loads r6 with the number ;thus we shall emulate this @@ -338,9 +337,9 @@ vm_consts: ;store this 'dynamic' instruction stx r0, 0(r2) - ldw r0, 4(r4) + ldw r0, 4(r15) stx r0, 4(r2) - ldw r0, 8(r4) + ldw r0, 8(r15) stx r0, 8(r2) ;increment address -- 2.25.1