From da4f6f7882d312792ff9fcb4958cdd703d0890a1 Mon Sep 17 00:00:00 2001 From: Emmanuel Marty Date: Wed, 3 Jul 2019 23:39:05 +0200 Subject: [PATCH] Restore CLC --- asm/6502/decompress_v2.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asm/6502/decompress_v2.asm b/asm/6502/decompress_v2.asm index 70dcbf8..6a26262 100755 --- a/asm/6502/decompress_v2.asm +++ b/asm/6502/decompress_v2.asm @@ -144,8 +144,7 @@ REP_MATCH PLA ; retrieve token from stack again AND #$07 ; isolate match len (MMM) - ;;CLC ; carry cleared by high ADC above - ; (assuming no overflow can occur) + CLC ADC #$02 ; add MIN_MATCH_SIZE_V2 CMP #$09 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2? BNE PREPARE_COPY_MATCH ; if less, length is directly embedded in token