optimize away JMP instruction in mem logic
This commit is contained in:
parent
f17b332005
commit
c6392088f8
3 changed files with 5 additions and 10 deletions
|
@ -15,14 +15,11 @@ change_length:
|
||||||
|
|
||||||
DEC length +1
|
DEC length +1
|
||||||
BPL loop
|
BPL loop
|
||||||
JMP loop_end
|
RTS
|
||||||
y_overflow:
|
y_overflow:
|
||||||
;; Y is now 0
|
;; Y is now 0
|
||||||
INC B_start + 1
|
INC B_start + 1
|
||||||
INC A_start + 1
|
INC A_start + 1
|
||||||
|
|
||||||
jmp change_length
|
jmp change_length
|
||||||
loop_end:
|
|
||||||
|
|
||||||
RTS
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
|
@ -15,11 +15,9 @@ change_length:
|
||||||
|
|
||||||
DEC length +1
|
DEC length +1
|
||||||
BPL loop
|
BPL loop
|
||||||
JMP loop_end
|
RTS
|
||||||
y_overflow:
|
y_overflow:
|
||||||
;; Y is now 0
|
;; Y is now 0
|
||||||
INC A_start + 1
|
INC A_start + 1
|
||||||
jmp change_length
|
jmp change_length
|
||||||
loop_end:
|
|
||||||
RTS
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
.include "STARTUP.s"
|
.include "STARTUP.s"
|
||||||
;.include "dubbel_buffer/raster_irqs.s"
|
;.include "dubbel_buffer/raster_irqs.s"
|
||||||
|
|
||||||
.include "routines/line/line_test.s"
|
;.include "routines/line/line_test.s"
|
||||||
.include "routines/text/char_draw_test.s"
|
;.include "routines/text/char_draw_test.s"
|
||||||
;.include "routines/pixel/pixel_test.s"
|
;.include "routines/pixel/pixel_test.s"
|
||||||
;.include "routines/memory/memcpy_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"
|
;.include "routines/triangle/triangle_test.s"
|
||||||
exit:
|
exit:
|
||||||
JMP exit
|
JMP exit
|
||||||
|
|
Loading…
Add table
Reference in a new issue