optimize away JMP instruction in mem logic

This commit is contained in:
hugova 2025-05-15 17:43:23 +02:00
parent f17b332005
commit c6392088f8
3 changed files with 5 additions and 10 deletions

View file

@ -15,14 +15,11 @@ change_length:
DEC length +1
BPL loop
JMP loop_end
RTS
y_overflow:
;; Y is now 0
INC B_start + 1
INC A_start + 1
jmp change_length
loop_end:
RTS
.endproc

View file

@ -15,11 +15,9 @@ change_length:
DEC length +1
BPL loop
JMP loop_end
RTS
y_overflow:
;; Y is now 0
INC A_start + 1
jmp change_length
loop_end:
RTS
.endproc

View file

@ -8,11 +8,11 @@
.include "STARTUP.s"
;.include "dubbel_buffer/raster_irqs.s"
.include "routines/line/line_test.s"
.include "routines/text/char_draw_test.s"
;.include "routines/line/line_test.s"
;.include "routines/text/char_draw_test.s"
;.include "routines/pixel/pixel_test.s"
;.include "routines/memory/memcpy_test.s"
;.include "routines/memory/memset_test.s"
.include "routines/memory/memset_test.s"
;.include "routines/triangle/triangle_test.s"
exit:
JMP exit