optimize code, no need to set Y after overflow

This commit is contained in:
hugova 2025-05-15 17:39:43 +02:00
parent 350e014e3f
commit f17b332005
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ change_length:
BPL loop BPL loop
JMP loop_end JMP loop_end
y_overflow: y_overflow:
LDY #$00 ;; Y is now 0
INC B_start + 1 INC B_start + 1
INC A_start + 1 INC A_start + 1

View file

@ -17,7 +17,7 @@ change_length:
BPL loop BPL loop
JMP loop_end JMP loop_end
y_overflow: y_overflow:
LDY #$00 ;; Y is now 0
INC A_start + 1 INC A_start + 1
jmp change_length jmp change_length
loop_end: loop_end: