Unroll the core loop of strlen one time.
This makes the core loop about 10% faster at the cost of 5 extra code bytes, which seems like a reasonable tradeoff.
This commit is contained in:
parent
9181b0bd73
commit
49ffb1065b
|
@ -961,6 +961,9 @@ str equ 4 pointer to the string
|
||||||
tyx null
|
tyx null
|
||||||
short M
|
short M
|
||||||
lb1 lda [str],Y
|
lb1 lda [str],Y
|
||||||
|
beq lb2
|
||||||
|
iny
|
||||||
|
lda [str],Y
|
||||||
beq lb2
|
beq lb2
|
||||||
iny
|
iny
|
||||||
bne lb1
|
bne lb1
|
||||||
|
|
Loading…
Reference in New Issue