mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-01-10 20:29:32 +00:00
-2 bytes and faster 6809 LZSA1 depacker
This commit is contained in:
parent
e253d3e628
commit
c3b111cea6
@ -1,4 +1,4 @@
|
|||||||
; unlzsa1.s - 6809 decompression routine for raw LZSA1 - 121 bytes
|
; unlzsa1.s - 6809 decompression routine for raw LZSA1 - 119 bytes
|
||||||
; compress with lzsa -r <original_file> <compressed_file>
|
; compress with lzsa -r <original_file> <compressed_file>
|
||||||
;
|
;
|
||||||
; in: x = start of compressed data
|
; in: x = start of compressed data
|
||||||
@ -59,8 +59,7 @@ lz1cpylt lda ,u+ ; copy literal byte
|
|||||||
bne lz1cpylt ; loop until all literal bytes are copied
|
bne lz1cpylt ; loop until all literal bytes are copied
|
||||||
tfr u,x
|
tfr u,x
|
||||||
|
|
||||||
lz1nolt puls b ; restore token
|
lz1nolt ldb ,s ; get token again, don't pop it from the stack
|
||||||
pshs b ; save it again
|
|
||||||
|
|
||||||
tstb ; test O bit (small or large offset)
|
tstb ; test O bit (small or large offset)
|
||||||
bmi lz1bigof
|
bmi lz1bigof
|
||||||
|
Loading…
x
Reference in New Issue
Block a user