optimize new memcpy

This commit is contained in:
hugova 2025-05-15 16:18:50 +02:00
parent f8dbfd86f9
commit cc46c68290

View file

@ -13,12 +13,16 @@ change_length:
DEC length
BNE loop
;;check if length hi byte is 0. if it is end this
LDA length + 1
BEQ loop_end
DEC length +1
JMP loop
BPL loop
JMP loop_end
;;;;check if length hi byte is 0. if it is end this
;;LDA length + 1
;;BEQ loop_end
;;DEC length +1
;;JMP loop
y_overflow:
LDY #$00
INC B_start + 1