Restore CLC

This commit is contained in:
Emmanuel Marty 2019-07-03 23:39:05 +02:00 committed by GitHub
parent 740df3d629
commit da4f6f7882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,8 +144,7 @@ REP_MATCH
PLA ; retrieve token from stack again PLA ; retrieve token from stack again
AND #$07 ; isolate match len (MMM) AND #$07 ; isolate match len (MMM)
;;CLC ; carry cleared by high ADC above CLC
; (assuming no overflow can occur)
ADC #$02 ; add MIN_MATCH_SIZE_V2 ADC #$02 ; add MIN_MATCH_SIZE_V2
CMP #$09 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2? CMP #$09 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2?
BNE PREPARE_COPY_MATCH ; if less, length is directly embedded in token BNE PREPARE_COPY_MATCH ; if less, length is directly embedded in token