mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-08-08 03:25:26 +00:00
Save 3 more bytes
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user