Reduses one CMP instruction in line_up_inv

This commit is contained in:
hugova 2025-07-17 13:53:56 +02:00
parent f64d28168b
commit cda44f292c

View file

@ -52,6 +52,8 @@ selfmod:
end_selfmod:
JSR pixel_calc ;;only used first pixel. after this relative position is abused
STA byte_to_paint
INY
Sub_16 btp_mem_pos, btp_mem_pos + 1, #$01, #$00 ;; Y has always a offset of at least 1
;LDY #$00
LDX dy
for_y:
@ -60,11 +62,10 @@ for_y:
STA (btp_mem_pos), Y
decrement_y_pos:
DEY
CPY #$ff
BNE decrement_y_pos_end
move_8px_up:
LDY #$07
Sub_16 btp_mem_pos, btp_mem_pos + 1,#$40 , #$01, !
LDY #$08
Sub_16 btp_mem_pos, btp_mem_pos + 1,#$3F , #$01, !
decrement_y_pos_end:
DEX
BEQ end