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
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 1a41f23d092d4c14008bec2e13e363226985e48b
13 changes: 5 additions & 8 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 (133 bytes, 20% faster) - BACKWARDS VARIANT
; "Turbo" version (128 bytes, 20% faster) - BACKWARDS VARIANT
; -----------------------------------------------------------------------------
; Parameters:
; HL: last source address (compressed data)
Expand Down Expand Up @@ -73,10 +73,11 @@ dzx0tb_elias:
rl c
add a, a
ret nc
dzx0tb_elias_reload:
add a, a
rl c
rl b
add a, a
dzx0tb_elias_reload:
ld a, (hl) ; load another group of 8 bits
dec hl
rla
Expand All @@ -95,10 +96,6 @@ dzx0tb_elias_reload:
rl c
rl b
add a, a
ret nc
add a, a
rl c
rl b
add a, a
jp dzx0tb_elias_reload
jr c, dzx0tb_elias_reload
ret
; -----------------------------------------------------------------------------