; Exomizer2 algorithm, backward with litterals for 6809 ; by Fool-DupleX, PrehisTO and Sam from PULS (www.pulsdemos.com) ; edouard@forler.ch ; This routine decrunches data compressed with Exomizer2 in raw mode, backward ; with litterals. ; This routine was developed and tested on a Thomson MO5 in July 2011. ; Please direct any questions about this decruncher to edouard@forler.ch ; The Exomizer2 decruncher starts here. ; call with a JSR exo2 or equivalent. ; ; Input : U = pointer to last byte of compressed data ; Y = pointer to last byte of output buffer ; Output : Y = pointer to first byte of decompressed data ; Modifies : Y. ; ; All registers are preserved except Y. ; This code self modifies and cannot be run in ROM. ; This code must be contained within a single page (makes use of DP), but may ; be located anywhere in RAM. exo2 pshs u,y,x,dp,d,cc ; Save context tfr pc,d ; Set direct page tfr a,dp lda ,u ; Save first byte of data sta