Save 3 more bytes

This commit is contained in:
Emmanuel Marty
2019-06-08 23:59:34 +02:00
committed by GitHub
parent aab82fa022
commit 435e157239

View File

@@ -28,8 +28,7 @@
; 3. This notice may not be removed or altered from any source distribution. ; 3. This notice may not be removed or altered from any source distribution.
; ----------------------------------------------------------------------------- ; -----------------------------------------------------------------------------
OFFSLO = $43 ; zero-page location for temp offset OFFSHI = $43 ; zero-page location for temp offset
OFFSHI = $44
DECOMPRESS_LZSA1 DECOMPRESS_LZSA1
LDY #$00 LDY #$00
@@ -117,12 +116,11 @@ GETMATCH_DONE
GET_LONG_OFFSET ; handle 16 bit offset: GET_LONG_OFFSET ; handle 16 bit offset:
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
STX OFFSLO ; store final match offset STA OFFSHI ; store high 8 bits of offset
STA OFFSHI TXA
CLC ; add dest + match offset CLC ; add dest + match offset
LDA PUTDST+1 ; low 8 bits ADC PUTDST+1 ; low 8 bits
ADC OFFSLO
STA COPY_MATCH_LOOP+1 ; store back reference address STA COPY_MATCH_LOOP+1 ; store back reference address
LDA OFFSHI ; high 8 bits LDA OFFSHI ; high 8 bits