View Single Post
Old 06 October 2011, 21:32   #9
hitchhikr
Registered User
 
Join Date: Jun 2008
Location: somewhere else
Posts: 521
My RLE depacker looks like that, dunno if it's faster or not.
Code:
; d0=size
; a0=source
; a1=dest
RLEDecrunch:    moveq   #0,d2
                move.b  (a0)+,d2
                bmi.b   Pixels
CopyPixs:       move.b  (a0)+,(a1)+
                subq.l  #1,d0
                dble    d2,CopyPixs
                bra.b   NoPixel
Pixels:         neg.b   d2
                move.b  (a0)+,d1
CopyRepeat:     move.b  d1,(a1)+
                subq.l  #1,d0
                dble    d2,CopyRepeat
NoPixel:        tst.l   d0
                bgt.b   RLEDecrunch
                rts
hitchhikr is offline  
 
Page generated in 0.07307 seconds with 11 queries