-
-
Save Ersanio/c0943a9ebd8a5df76b0045de23aa6d47 to your computer and use it in GitHub Desktop.
inflate stack magic #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;here be dragons (at this point I think all of the code is dragons though) | |
macro inline_decode_symbol(table) | |
ldx #<table> | |
tdc | |
tcs | |
- | |
%get_bit() | |
rol | |
inx | |
inx | |
tay | |
tsc | |
adc.b tree.code_lengths,x | |
tcs | |
tya | |
sec | |
sbc.b tree.code_lengths,x | |
bpl - | |
sta $00 | |
tsc | |
adc $00 | |
asl | |
tay | |
lda.w tree.translate+<table>,y | |
endmacro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment