mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-02-27 16:29:01 +00:00
Rearrange "CLRA" instruction for slight speed optimization in 6809 LZSA depacker
This commit is contained in:
parent
b5b8ca556a
commit
06d63de9d7
@ -64,9 +64,9 @@ lz1cpymt lda ,u+ ; copy matched byte
|
|||||||
lz1token ldb ,x+ ; load next token into B: O|LLL|MMMM
|
lz1token ldb ,x+ ; load next token into B: O|LLL|MMMM
|
||||||
pshs b ; save it
|
pshs b ; save it
|
||||||
|
|
||||||
clra ; clear A (high part of literals count)
|
|
||||||
andb #$70 ; isolate LLL (embedded literals count) in B
|
andb #$70 ; isolate LLL (embedded literals count) in B
|
||||||
beq lz1nolt ; skip if no literals
|
beq lz1nolt ; skip if no literals
|
||||||
|
clra ; clear A (high part of literals count)
|
||||||
cmpb #$70 ; LITERALS_RUN_LEN?
|
cmpb #$70 ; LITERALS_RUN_LEN?
|
||||||
bne lz1declt ; if not, we have the complete count, go unshift
|
bne lz1declt ; if not, we have the complete count, go unshift
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user