mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-22 05:33:58 +00:00
Optimize match offset code in 6809 LZSA2 depacker
This commit is contained in:
parent
03692fca2c
commit
078edef880
@ -1,4 +1,4 @@
|
|||||||
; unlzsa2b.s - 6809 backward decompression routine for raw LZSA2 - 175 bytes
|
; unlzsa2b.s - 6809 backward decompression routine for raw LZSA2 - 174 bytes
|
||||||
; compress with lzsa -f2 -r -b <original_file> <compressed_file>
|
; compress with lzsa -f2 -r -b <original_file> <compressed_file>
|
||||||
;
|
;
|
||||||
; in: x = last byte of compressed data
|
; in: x = last byte of compressed data
|
||||||
@ -119,10 +119,9 @@ lz2lowof ldb ,-x ; load low 8 bits of offset
|
|||||||
lz2gotof nega ; reverse sign of offset in D
|
lz2gotof nega ; reverse sign of offset in D
|
||||||
negb
|
negb
|
||||||
sbca #0
|
sbca #0
|
||||||
std <lz2repof+1,pcr ; store match offset
|
std <lz2repof+2,pcr ; store match offset
|
||||||
|
|
||||||
lz2repof ldd #$aaaa ; load match offset
|
lz2repof leau $aaaa,y ; put backreference start address in U (dst+offset)
|
||||||
leau d,y ; put backreference start address in U (dst+offset)
|
|
||||||
|
|
||||||
puls b ; restore token
|
puls b ; restore token
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user