Push performance improvments from line_down.s to line*.s

This commit is contained in:
hugova 2025-03-29 18:23:03 +01:00
parent 08daa79e6a
commit d9fe32e8f3
4 changed files with 10 additions and 10 deletions

View file

@ -35,9 +35,9 @@ selfmod:
LDA <dx_2 LDA <dx_2
STA case_2 +7 STA case_2 +7
LDA >V LDA >V
STA case_1 +3 STA case_1 +1
LDA <V LDA <V
STA case_1 +9 STA case_1 +7
end_selfmod: end_selfmod:
jsr pixel_draw jsr pixel_draw
@ -59,7 +59,7 @@ increment_y_pos_end:
BEQ end BEQ end
Lag_16 >D, <D, #$00, #$02, case_2 Lag_16 >D, <D, #$00, #$02, case_2
case_1: case_1:
Sub_16 >D, <D, #>V, #<V, ! Sub_16_A >D, <D, #>V, #<V, !
increment_pixel_x: increment_pixel_x:
LDA byte_to_paint LDA byte_to_paint
LSR byte_to_paint LSR byte_to_paint

View file

@ -36,9 +36,9 @@ selfmod:
LDA <dy_2 LDA <dy_2
STA case_2 +7 STA case_2 +7
LDA >V LDA >V
STA case_1 +3 STA case_1 +1
LDA <V LDA <V
STA case_1 +9 STA case_1 +7
end_selfmod: end_selfmod:
jsr pixel_draw jsr pixel_draw
@ -60,7 +60,7 @@ increment_pixel_x_end:
BEQ end BEQ end
Lag_16 >D, <D, #$00, #$02, case_2 Lag_16 >D, <D, #$00, #$02, case_2
case_1: case_1:
Sub_16 >D, <D, #>V, #<V, ! Sub_16_A >D, <D, #>V, #<V, !
decrement_y_pos: decrement_y_pos:
DEY DEY
CPY #$ff CPY #$ff

View file

@ -35,9 +35,9 @@
LDA <dx_2 LDA <dx_2
STA case_2 +7 STA case_2 +7
LDA >V LDA >V
STA case_1 +3 STA case_1 +1
LDA <V LDA <V
STA case_1 +9 STA case_1 +7
end_selfmod: end_selfmod:
jsr pixel_draw jsr pixel_draw
@ -59,7 +59,7 @@ decrement_y_pos_end:
BEQ end BEQ end
Lag_16 >D, <D, #$00, #$02, case_2 Lag_16 >D, <D, #$00, #$02, case_2
case_1: case_1:
Sub_16 >D, <D, #>V, #<V, ! Sub_16_A >D, <D, #>V, #<V, !
increment_pixel_x: increment_pixel_x:
LDA byte_to_paint LDA byte_to_paint
LSR byte_to_paint LSR byte_to_paint

View file

@ -3,7 +3,7 @@
.include "macros/timer.s" .include "macros/timer.s"
.include "STARTUP.s" .include "STARTUP.s"
.include "routines/line/line_test_time.s" .include "routines/line/line_test.s"
;jsr char_draw ;jsr char_draw
;;This is used by .s files to terminate nicely without reading includes at the end! ;;This is used by .s files to terminate nicely without reading includes at the end!
exit: exit: