diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-29 22:38:34 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-29 22:38:34 -0400 |
commit | 2f9d38f9f9d6f17bc274934b23915417012eeed8 (patch) | |
tree | b72aff709261d5e22f026835191eec9b73a77ff5 /test/test.s | |
parent | 47cb4ad67be723a4df8e6ccd3cad6be79e3e7765 (diff) |
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.
Diffstat (limited to 'test/test.s')
-rw-r--r-- | test/test.s | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/test.s b/test/test.s index 7c36579..14b9798 100644 --- a/test/test.s +++ b/test/test.s @@ -2,12 +2,15 @@ ; ; Writen by mr b0nk 500 <b0nk@b0nk.xyz> .org $8000 -cps ; Clear the processor status register. -lda.w #$1000 ; Load 0x1000 into the accumulator. -rol #$1 ; Then rotate the accumulator left by 1 bit. -jmp $8005 ; And then loop. +entry: + cps ; Clear the processor status register. + lda.w #$1000 ; Load 0x1000 into the accumulator. +loop: + rol #$1 ; Then rotate the accumulator left by 1 bit. + jmp loop ; And then loop. -.org $FFC0 ; Reset vector. -.qword $8000 -done +.org $FFC0 ; Reset vector. +.qword entry +a +d |