From e9540b2e3d70f7da07945249bdb5edc11a4678b4 Mon Sep 17 00:00:00 2001 From: Doug Masten Date: Wed, 24 Jun 2020 00:49:09 -0500 Subject: [PATCH] Remove unnecessary "ADDB #$18" as register B will always have this value from 6809 LZSA2 depacker --- asm/6809/unlzsa2.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asm/6809/unlzsa2.s b/asm/6809/unlzsa2.s index e21d0cd..f8a3a83 100644 --- a/asm/6809/unlzsa2.s +++ b/asm/6809/unlzsa2.s @@ -141,8 +141,7 @@ lz2repof ldd #$aaaa ; load match offset cmpb #$18 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2 + 15? bne lz2gotln ; if not, we have the full match length, go copy - ldb ,x+ ; load extra length byte - addb #$18 ; add MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2 + 15 + addb ,x+ ; add extra length byte + MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2 + 15 bcc lz2gotln ; if no overflow, we have the full length beq lz2done ; detect EOD code