From: Lauri Kasanen Date: Fri, 9 Jun 2017 13:57:47 +0000 (+0300) Subject: Small lz4 optimizations X-Git-Tag: V2.17~124^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4235e569d20cf64e52a26267149f4cf4ca1d4c89;p=cc65 Small lz4 optimizations --- diff --git a/libsrc/common/lz4.s b/libsrc/common/lz4.s index a750f4bf8..4702137bc 100644 --- a/libsrc/common/lz4.s +++ b/libsrc/common/lz4.s @@ -137,7 +137,7 @@ L001A: lda offset ldx in+1 sta ptr1 stx ptr1+1 - ldy #$00 +; ldy #$00 - not needed as pushax zeroes Y jsr memcpy_upwards ; ; written += offset; @@ -195,11 +195,11 @@ L0047: ldy #$00 L002F: lda out clc adc written - pha + tay lda out+1 adc written+1 tax - pla + tya sec sbc offset sta ptr1