optimize new memcpy
This commit is contained in:
parent
f8dbfd86f9
commit
cc46c68290
1 changed files with 9 additions and 5 deletions
|
@ -13,12 +13,16 @@ change_length:
|
||||||
DEC length
|
DEC length
|
||||||
BNE loop
|
BNE loop
|
||||||
|
|
||||||
;;check if length hi byte is 0. if it is end this
|
|
||||||
LDA length + 1
|
|
||||||
BEQ loop_end
|
|
||||||
|
|
||||||
DEC length +1
|
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:
|
y_overflow:
|
||||||
LDY #$00
|
LDY #$00
|
||||||
INC B_start + 1
|
INC B_start + 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue