Add missing performance improvments to line_* from line_down.s

This commit is contained in:
hugova 2025-03-25 23:28:53 +01:00
parent 20b24a299a
commit ff64a9a9b0
2 changed files with 5 additions and 5 deletions

View file

@ -56,18 +56,18 @@ 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 >D, <D, >V, <V, !
decrement_y_pos: decrement_y_pos:
DEY DEY
CPY #$ff CPY #$ff
BNE for_x BNE for_x
move_8px_up: move_8px_up:
LDY #$07 LDY #$07
Sub_16 >btp_mem_pos, <btp_mem_pos, #$40, #$01 Sub_16 >btp_mem_pos, <btp_mem_pos, #$40, #$01, !
jmp for_x jmp for_x
decrement_y_pos_end: decrement_y_pos_end:
case_2: case_2:
Add_16 >D, <D, >dy_2, <dy_2 Add_16 >D, <D, >dy_2, <dy_2, !
JMP for_x JMP for_x
end: end:
RTS RTS

View file

@ -50,7 +50,7 @@ decrement_y_pos:
BNE decrement_y_pos_end BNE decrement_y_pos_end
move_8px_up: move_8px_up:
LDY #$07 LDY #$07
Sub_16>btp_mem_pos, <btp_mem_pos,#$40 , #$01 Sub_16>btp_mem_pos, <btp_mem_pos,#$40 , #$01, !
decrement_y_pos_end: decrement_y_pos_end:
DEX DEX
CPX Y_end CPX Y_end
@ -68,7 +68,7 @@ move_8px_left:
STA byte_to_paint STA byte_to_paint
JMP for_y JMP for_y
case_2: case_2:
Add_16 >D, <D, >dx_2, <dx_2 Add_16 >D, <D, >dx_2, <dx_2,!
JMP for_y JMP for_y
end: end:
RTS RTS