mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-26 02:49:19 +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)
|
BYTE $A9 ; mask TAX (faster than BCS)
|
||||||
PREPARE_COPY_LITERALS
|
PREPARE_COPY_LITERALS
|
||||||
TAX
|
TAX
|
||||||
|
BEQ COPY_LITERALS
|
||||||
INY
|
INY
|
||||||
|
|
||||||
COPY_LITERALS
|
COPY_LITERALS
|
||||||
@ -89,6 +90,8 @@ SHORT_VARLEN_MATCHLEN
|
|||||||
PREPARE_COPY_MATCH
|
PREPARE_COPY_MATCH
|
||||||
TAX
|
TAX
|
||||||
PREPARE_COPY_MATCH_Y
|
PREPARE_COPY_MATCH_Y
|
||||||
|
TXA
|
||||||
|
BEQ COPY_MATCH_LOOP
|
||||||
INY
|
INY
|
||||||
|
|
||||||
COPY_MATCH_LOOP
|
COPY_MATCH_LOOP
|
||||||
|
@ -68,6 +68,8 @@ PREPARE_COPY_LITERALS
|
|||||||
TAY ; put high 8 bits in Y
|
TAY ; put high 8 bits in Y
|
||||||
|
|
||||||
PREPARE_COPY_LITERALS_HIGH
|
PREPARE_COPY_LITERALS_HIGH
|
||||||
|
TXA
|
||||||
|
BEQ COPY_LITERALS
|
||||||
INY
|
INY
|
||||||
|
|
||||||
COPY_LITERALS
|
COPY_LITERALS
|
||||||
@ -165,6 +167,8 @@ PREPARE_COPY_MATCH
|
|||||||
TAY ; put high 8 bits in Y
|
TAY ; put high 8 bits in Y
|
||||||
|
|
||||||
PREPARE_COPY_MATCH_Y
|
PREPARE_COPY_MATCH_Y
|
||||||
|
TXA
|
||||||
|
BEQ COPY_MATCH_LOOP
|
||||||
INY
|
INY
|
||||||
|
|
||||||
COPY_MATCH_LOOP
|
COPY_MATCH_LOOP
|
||||||
|
Loading…
Reference in New Issue
Block a user