mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-22 05:33:58 +00:00
Fix copying multiples of 256 bytes
This commit is contained in:
parent
2d65f2a7c8
commit
081a29a3db
@ -62,6 +62,7 @@ LARGE_VARLEN_LITERALS ; handle 16 bits literals count
|
||||
BYTE $A9 ; mask TAX (faster than BCS)
|
||||
PREPARE_COPY_LITERALS
|
||||
TAX
|
||||
BEQ COPY_LITERALS
|
||||
INY
|
||||
|
||||
COPY_LITERALS
|
||||
@ -89,6 +90,8 @@ SHORT_VARLEN_MATCHLEN
|
||||
PREPARE_COPY_MATCH
|
||||
TAX
|
||||
PREPARE_COPY_MATCH_Y
|
||||
TXA
|
||||
BEQ COPY_MATCH_LOOP
|
||||
INY
|
||||
|
||||
COPY_MATCH_LOOP
|
||||
|
@ -68,6 +68,8 @@ PREPARE_COPY_LITERALS
|
||||
TAY ; put high 8 bits in Y
|
||||
|
||||
PREPARE_COPY_LITERALS_HIGH
|
||||
TXA
|
||||
BEQ COPY_LITERALS
|
||||
INY
|
||||
|
||||
COPY_LITERALS
|
||||
@ -165,6 +167,8 @@ PREPARE_COPY_MATCH
|
||||
TAY ; put high 8 bits in Y
|
||||
|
||||
PREPARE_COPY_MATCH_Y
|
||||
TXA
|
||||
BEQ COPY_MATCH_LOOP
|
||||
INY
|
||||
|
||||
COPY_MATCH_LOOP
|
||||
|
Loading…
Reference in New Issue
Block a user