summaryrefslogtreecommitdiff
path: root/test/subroutine.s
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-08-17 20:37:44 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-08-17 20:37:44 -0400
commitd31aed21b27fbda68abe088d657ba18455607cc4 (patch)
tree484f16e64f1fa4bcbdad7eb3242ec95e3ca9f5be /test/subroutine.s
parent7e57608dff1e768d2ee5d6b6a28a319865530ed0 (diff)
- Fixed some bugs in the emulator's assembler.
- Simplified the effective address functions. - Made SuBEditor a bit faster. - JSR, and RTS now support using the RS prefix, which is used to specify the return address size, with an RS prefix of 0 being a return address size of 64 bits, rather than 8 bits.
Diffstat (limited to 'test/subroutine.s')
-rw-r--r--test/subroutine.s13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/subroutine.s b/test/subroutine.s
index d39fc15..122c34c 100644
--- a/test/subroutine.s
+++ b/test/subroutine.s
@@ -23,21 +23,21 @@ start:
;inb
;stb $C010
;deb
-bench:
+@bench:
jsr clr_buf
- jmp bench
+ bra @bench
clr_buf:
tba ; Reset the Accumulator.
cpy.w #$1FFF ; Did we clear all of the screen buffer?
- bcs clr_buf_end ; Yes, so we're done.
+ bcs @end ; Yes, so we're done.
sta.q (ptr), y ; No, so clear eight bytes.
sta.q (ptr2), y ; Clear eight more bytes.
tya ; Copy the buffer index.
adc #$10 ; Increment the index by 16.
tay ; Update the index.
- jmp clr_buf ; Keep looping.
-clr_buf_end:
+ bra clr_buf ; Keep looping.
+@end:
tay ; Set the index back to zero.
rts ; End of clr_buf.
@@ -46,5 +46,4 @@ clr_buf_end:
.org $FFC0
.qword reset
a
-done
-
+d