Fix literal runs that are multiple of 256 bytes

This commit is contained in:
Emmanuel Marty 2019-07-27 01:35:46 +02:00 committed by GitHub
parent b613d01565
commit 82edcb8bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ LARGE_VARLEN_LITERALS ; handle 16 bits literals count
; literals count = directly these 16 bits ; literals count = directly these 16 bits
JSR GETLARGESRC ; grab low 8 bits in X, high 8 bits in A JSR GETLARGESRC ; grab low 8 bits in X, high 8 bits in A
TAY ; put high 8 bits in Y TAY ; put high 8 bits in Y
!byte $A9 ; mask TAX (faster than BCS) TXA
PREPARE_COPY_LITERALS PREPARE_COPY_LITERALS
TAX TAX
BEQ COPY_LITERALS BEQ COPY_LITERALS