mirror of
https://github.com/byteworksinc/ORCALib.git
synced 2024-06-14 03:29:41 +00:00
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
|
||||
short M
|
||||
lb1 lda [str],Y
|
||||
beq lb2
|
||||
iny
|
||||
lda [str],Y
|
||||
beq lb2
|
||||
iny
|
||||
bne lb1
|
||||
|
|
Loading…
Reference in New Issue
Block a user