reduse SEC instruction from circle-draw

This commit is contained in:
hugova 2025-07-10 16:40:14 +02:00
parent b868156138
commit 156abddbe7

View file

@ -134,7 +134,9 @@ draw_right_px_in_circle:; similar as above
LDX #$08 ; X=8 always expected inside the loop
while_x_bigger_then_y:
SEC
while_x_bigger_then_y: ; C=1 here because above and branching logic
draw_pixels:
draw_qaa:
LDY Y_qaa
@ -187,7 +189,8 @@ qaa_y:
qaa_y_underflow:
;; Switch to chunk bellow
; So we subtract #$0140
Sub_16 btp_mem_pos, btp_mem_pos + 1, #$40, #$01 ;-320
;; Note that C =1, read from while_x_bigger_then_y label.
Sub_16 btp_mem_pos, btp_mem_pos + 1, #$40, #$01, ! ;-320
Sub_16 btp_mem_pos_qba, btp_mem_pos_qba + 1, #$40, #$01,!
STY Y_qaa ; Y_qaa =$07
qaa_y_end: