Fix copying multiples of 256 bytes

This commit is contained in:
Emmanuel Marty 2019-07-14 16:14:55 +02:00 committed by GitHub
parent 2d65f2a7c8
commit 081a29a3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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