diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CompressBlock.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/CompressBlock.S b/Source/CompressBlock.S index 9bec2d3..502e32d 100644 --- a/Source/CompressBlock.S +++ b/Source/CompressBlock.S @@ -1,11 +1,11 @@ ** -** $Id: CompressBlock.S,v 21.1 92/05/15 03:23:52 chris Exp $ -** $Revision: 21.1 $ +** $Id: CompressBlock.S,v 21.2 92/05/17 03:29:11 chris Exp $ +** $Revision: 21.2 $ ** ** $Filename: CompressBlock.S $ ** $Author: chris $ ** $Release: $ -** $Date: 92/05/15 03:23:52 $ +** $Date: 92/05/17 03:29:11 $ ** ** iff.library/IFFL_CompressBlock ** @@ -92,7 +92,7 @@ Compress_NONE: movem.l d0/a6,-(SP) Compress_BYTERUN1: movem.l d2-d3/a2-a3,-(SP) - lea (a0,d0.l),a2 ; A2 : Source-Endadresse + lea 0(a0,d0.l),a2 ; A2 : Source-Endadresse moveq #0,d3 ; Byte-Zähler crunchloop: bsr.b CountEq ; wieviele gleiche Bytes folgen ? @@ -113,8 +113,8 @@ countdump: movea.l a0,a3 ; Source-Pointer retten 1$: addq.b #1,d2 bmi.b 2$ ; höchstens 127 Bytes pro Block addq.l #1,a0 - cmpa.l a2,a0 ; Ende der Linie erreicht ? - bge.b 3$ ; ja -> abbrechen + cmpa.l a2,a0 ; Ende der Daten erreicht ? + bhs.b 3$ ; ja -> abbrechen bsr.b CountEq cmp.w #3,d0 ; Ende des Dump-Blocks ? blt.b 1$ ; noch nicht @@ -131,7 +131,7 @@ countdump: movea.l a0,a3 ; Source-Pointer retten crunchcont: cmpa.l a2,a0 ; Ende der Linie erreicht ? - blt.b crunchloop ; noch nicht! + blo.b crunchloop ; noch nicht! move.l d3,d0 ; Return: Anzahl Destination-Bytes movem.l (SP)+,d2-d3/a2-a3 |