home *** CD-ROM | disk | FTP | other *** search
- ; Decompress JJ and GG Commodore 64 pictures
- ; ***** Jerry Bethel July 27, 1987 *****
- ; get the input area and length, and output area
- init0:
- move.l 6(sp),a0
- lea init0,a1
- cmp.l 0(a0),a1 ; Old version parm list?
- beq init1 ; Yes, go process
- move.l 0(a0),a1 ; New version parm offsets
- move.l 4(a0),a2 ; (Same as Atari ST-Basic)
- move.l 8(a0),d3
- bra init2
- init1:
- move.l 4(a0),a1 ; Old parm offsets
- move.l 8(a0),a2
- move.l 12(a0),d3
- init2:
- main00:
- cmp.b #$fe,0(a1)
- beq main10
- move.b (a1)+,(a2)+
- dbf d3,main00
- rts
- main10:
- clr.l d1
- move.b 2(a1),d1
- subq.l #1,d1
- main20:
- move.b 1(a1),(a2)+
- dbf d1,main20
- addq.l #3,a1
- subq.l #3,d3
- bra main00
- end
-