optimize code, no need to set Y after overflow
This commit is contained in:
parent
350e014e3f
commit
f17b332005
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ change_length:
|
|||
BPL loop
|
||||
JMP loop_end
|
||||
y_overflow:
|
||||
LDY #$00
|
||||
;; Y is now 0
|
||||
INC B_start + 1
|
||||
INC A_start + 1
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ change_length:
|
|||
BPL loop
|
||||
JMP loop_end
|
||||
y_overflow:
|
||||
LDY #$00
|
||||
;; Y is now 0
|
||||
INC A_start + 1
|
||||
jmp change_length
|
||||
loop_end:
|
||||
|
|
Loading…
Add table
Reference in a new issue