From 2f9d38f9f9d6f17bc274934b23915417012eeed8 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 29 May 2020 22:38:34 -0400 Subject: Make JSL, JSR absolute, and remove RTL. The reason for doing this was because JSL, and RTL are redundent, as they both do the same thing as JSR, and RTS. --- test/fib2.s | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'test/fib2.s') diff --git a/test/fib2.s b/test/fib2.s index 59830a2..9bb2406 100644 --- a/test/fib2.s +++ b/test/fib2.s @@ -1,19 +1,9 @@ -; Variables for thread 0. -.org $1000 -x: - .qword 0 -y: - .qword 1 -z: - .qword 0 -zero: - .qword 0 .org 0 init: cps ; Clear the Processor Status register. start: - lsr #63 ; Reset the accumulator. + and #0 ; Reset the accumulator. tab ; tax ; tay ; @@ -30,4 +20,4 @@ fib: tay ; jmp fib ; No, so keep looping. a -done +d -- cgit v1.2.3-13-gbd6f