Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New "fast" decompressor #6

Merged
merged 27 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a313658
Merge pull request #1 from einar-saukas/main
specke Jan 25, 2021
e63657f
New speed-optimized decompressor
specke Jan 25, 2021
ecbef18
modified file format: using interlaced (instead of regular) Elias Gam…
einar-saukas Jan 25, 2021
e729f64
improved "turbo" decompressor
einar-saukas Jan 25, 2021
a016335
modified file format: now using inverted interlaced Elias Gamma Code …
einar-saukas Jan 26, 2021
9d147c0
comments
einar-saukas Jan 28, 2021
1a41f23
improved "turbo" decompressor
einar-saukas Jan 29, 2021
da254a6
improved "standard" decompressor
einar-saukas Jan 29, 2021
4646cd7
minor performance improvement
einar-saukas Jan 29, 2021
897162c
documentation
einar-saukas Jan 30, 2021
43a8591
documentation
einar-saukas Jan 31, 2021
e69072a
even larger but faster "mega" decompressor
einar-saukas Feb 1, 2021
7dfbc3c
smaller "mega" decompressor
einar-saukas Feb 1, 2021
5f72e84
minor performance improvement
einar-saukas Feb 4, 2021
0c8bba3
documentation
einar-saukas Feb 4, 2021
f0db1fd
documentation and progress indicator
einar-saukas Feb 4, 2021
985488d
documentation
einar-saukas Feb 5, 2021
f855f2e
documentation
einar-saukas Feb 5, 2021
a29ad10
fixed compression with prefix
einar-saukas Feb 7, 2021
bd97f69
documentation
einar-saukas Feb 17, 2021
2576e66
documentation
einar-saukas Feb 19, 2021
e1e1619
Makefile and documentation
einar-saukas Mar 1, 2021
5075694
documentation
einar-saukas Mar 12, 2021
1dcc77e
documentation
einar-saukas Mar 15, 2021
1c087a3
documentation
einar-saukas Mar 17, 2021
e7dd8d1
Merge pull request #3 from einar-saukas/main
specke Mar 24, 2021
4e032e0
New "fast" decompressor
specke Mar 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improved "turbo" decompressor
  • Loading branch information
einar-saukas authored and specke committed Mar 24, 2021
commit e729f64c95edb87249cad70ed5bf08a43cf3a76e
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Afterwards you can choose a decompressor routine in assembly Z80, according to
your requirements for speed and size:

* "Standard" routine: 70 bytes only
* "Turbo" routine: 130 bytes, about 20% faster
* "Turbo" routine: 128 bytes, about 20% faster
* "Mega" routine: 562 bytes, about 25% faster

Finally compile the chosen decompressor routine and load the compressed file
Expand Down
5 changes: 2 additions & 3 deletions z80/dzx0_turbo.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; -----------------------------------------------------------------------------
; ZX0 decoder by Einar Saukas & introspec
; "Turbo" version (130 bytes, 20% faster)
; "Turbo" version (128 bytes, 20% faster)
; -----------------------------------------------------------------------------
; Parameters:
; HL: source address (compressed data)
Expand Down Expand Up @@ -70,9 +70,8 @@ dzx0t_elias:
add a, a ; interlaced Elias gamma coding
rl c
add a, a
jr z, dzx0t_elias_reload
jr nc, dzx0t_elias
ret
ret nz
dzx0t_elias_reload:
ld a, (hl) ; load another group of 8 bits
inc hl
Expand Down
5 changes: 2 additions & 3 deletions z80/dzx0_turbo_back.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; -----------------------------------------------------------------------------
; ZX0 decoder by Einar Saukas & introspec
; "Turbo" version (129 bytes, 20% faster) - BACKWARDS VARIANT
; "Turbo" version (127 bytes, 20% faster) - BACKWARDS VARIANT
; -----------------------------------------------------------------------------
; Parameters:
; HL: last source address (compressed data)
Expand Down Expand Up @@ -69,9 +69,8 @@ dzx0tb_elias:
add a, a ; interlaced Elias gamma coding
rl c
add a, a
jr z, dzx0tb_elias_reload
jr nc, dzx0tb_elias
ret
ret nz
dzx0tb_elias_reload:
ld a, (hl) ; load another group of 8 bits
dec hl
Expand Down