home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
VORX
/
CC68A.ARC
/
SIEVE.SA
< prev
next >
Wrap
Text File
|
1988-07-15
|
1KB
|
73 lines
SECTION 15
FLAGS:
DS.B 8191
SECTION 9
MAIN:
LINK A6,#-20
MOVEM.L D3/D4/D5/D6/D7/A2,-(A7)
MOVE.L #FLAGS,A2
MOVE.L #8190,D7
MOVE.L #L.0,-(A7)
JSR PRINTF
ADD.W #4,A7
MOVE.L #1,-20(A6)
L.2:
MOVE.L -20(A6),D0
CMP.L #100,D0
BGT L.3
MOVE #0,D5
MOVE #0,D3
L.4:
CMP.L D7,D3
BGT L.5
MOVE.B #1,0(A2,D3.L)
ADD.L #1,D3
BRA L.4
L.5:
MOVE #0,D3
L.6:
CMP.L D7,D3
BGT L.7
TST.B 0(A2,D3.L)
BEQ L.8
MOVE.L D3,D0
ADD.L D3,D0
ADD.L #3,D0
MOVE.L D0,D6
MOVE.L D3,D0
ADD.L D6,D0
MOVE.L D0,D4
L.10:
CMP.L D7,D4
BGT L.11
CLR.B 0(A2,D4.L)
ADD.L D6,D4
BRA L.10
L.11:
MOVE.L D5,D0
ADD.L #1,D0
MOVE.L D0,D5
L.8:
ADD.L #1,D3
BRA L.6
L.7:
ADD.L #1,-20(A6)
BRA L.2
L.3:
MOVE.L D5,-(A7)
MOVE.L #L.1,-(A7)
JSR PRINTF
ADD.W #8,A7
L.12:
MOVEM.L (A7)+,D3/D4/D5/D6/D7/A2
UNLK A6
RTS
L.1:
DC.B 10,37,100,32,112,114,105,109,101,115,10,0
L.0:
DC.B 49,48,48,32,105,116,101,114,97,116,105,111
DC.B 110,115,10,0
XDEF FLAGS
XDEF MAIN
XREF PRINTF
END