inflate stack magic #2
;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