home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
755.dms
/
755.adf
/
Orphaned
/
1573
/
Orphan-1573-1573
Wrap
Text File
|
1993-02-19
|
4KB
|
234 lines
****************************************************************
* *
* THIS PROGRAM WAS CODED BY THE CRUX OF SILENTS *
* ALL RIGHTS ARE RESERVED *
* *
****************************************************************
>EXTERN "DF1:GRAFIX/ALIEN",PIC
>EXTERN "DF1:GRAFIX/ALFS",PIC2
>EXTERN "DF1:GRAFIX/ALIEN",PIC3
>EXTERN "DF1:GRAFIX/ALFS",PIC4
ORG $35000
LOAD $35000
PIC= $40000
PIC2= PIC+55000
PIC3= PIC2+55000
PIC4= PIC3+55000
J:; MOVEM.L D0-D7/A0-A6,-(SP)
MOVE.W #$0020,$DFF09A
MOVE.L #COPPER,$DFF084 ;START COPPER
MOVE.W $DFF08A,D0
MOVE.W #$0020,$DFF096
****************************************
KOLLE:
MOVE.L #PIC+$C800,A0 ;POINTER PAA PIC'S COLOURS
MOVE.L #COLOURS+2,A1 ;POINTER PAA FARVER
MOVE.L #PIC2+$C800,A2 ;POINTER PAA PIC2'S COLOURS
MOVE.L #COLOURS+2,A3 ;POINTER PAA FARVER
MOVE.L #PIC3+$C800,A4 ;POINTER PAA PIC3'S COLOURS
MOVE.L #COLOURS+2,A5 ;POINTER PAA FARVER
MOVE.B #8,TAELLEJOHN
LOOP:
WAITFORRASTER:
CMPI.B #$60,$DFF006 ;VENT PAA RASTER, FOR RIGTIG TID.
BNE.S WAITFORRASTER
BTST #6,$BFE001
BEQ.L STOP
MOVE.W #$F66,$DFF180
BSR.S DEMO
MOVE.W #$000,$DFF180
BRA.S LOOP
DEMO:
CMP.B #1,CHECK
BGE.S DEMO2
SUB.B #1,BENDT
BNE.S HOLDT
BSR.L BITPLANESETUP
MOVE.B #10,BENDT
MOVE.W (A0),(A1)
ADD.W #$2,A0
ADD.W #$4,A1
SUBQ.B #1,IB ;I D2 LIGGER TAELLER TIL ANTAL FARVER.
BNE.S HOLDT
MOVE.B #1,CHECK ;CHECK LIGGER TESTER FOR VIDERE KORSEL
MOVE.B #10,BENDT
MOVE.B #32,IB ;I IB LIGGER ANTAL FARVER
HOLDT:
RTS
DEMO2:
CMP.B #2,CHECK
BGE.L DEMO3
SUB.B #1,TAELLER
BNE.S HOLDT
BSR.S TEST
MOVE.B #$2,TAELLER
SUB.B #1,BENDT
BNE.S HOLDT
MOVE.W (A2),(A3)
ADD.W #$2,A2
ADD.W #$4,A3
MOVE.B #4,BENDT
SUBQ.B #1,IB ;I D2 LIGGER TAELLER TIL ANTAL FARVER.
BNE.S HOLDT
MOVE.B #2,CHECK ;CHECK LIGGER TESTER FOR VIDERE KORSEL
RTS
TEST:
SUB.B #1,TAELLEJOHN ;TAELLER I TAELLEJOHN
BNE.S HOLDT
MOVE.B #20,TAELLEJOHN
ADD.B #1,JOHN
CMP.B #1,JOHN
BEQ.L PLANE1_2
CMP.B #2,JOHN
BEQ.L PLANE2_2
CMP.B #3,JOHN
BEQ.L PLANE3_2
CMP.B #4,JOHN
BEQ.L PLANE4_2
CMP.B #5,JOHN
BEQ.L PLANE5_2
RTS
;///////////////////////////////////////////
DEMO3:
CMP.B #3,CHECK
BGE.L FADERUTINEN
MOVE.W (A4),(A5)
ADD.W #$2,A4
ADD.W #$4,A5
SUBQ.B #1,D2 ;I D2 LIGGER TAELLER TIL ANTAL FARVER.
BNE.S HOLDT2
MOVE.B #3,CHECK ;CHECK LIGGER TESTER FOR VIDERE KORSEL
MOVE.B #31,IB
MOVEQ #0,D5
MOVEQ #0,D0
HOLDT2:
RTS
DEMO4:
CMP.B #5,CHECK
BGE.S DEMO5
KOL:
MOVE.B IBEN,ON+2
ADD.B #1,OFF
CMP.B #$FF,OFF
BNE.S HOLDT2
MOVE.B #5,CHECK
MOVE.B IBEN,OFF+6
RTS
DEMO5:
CMP.B #6,CHECK
BGE.S RUTINECHECK
ADD.B #1,OFF2
CMP.B #$24,OFF2
BNE.S HOLDT2
MOVE.B #6,CHECK
RTS
RUTINECHECK:
CMP.B #7,CHECK
BEQ.L HOLDT
MOVE.B #$00,OFF
MOVE.B #$00,OFF2
MOVE.B IBEN,OFF2+6
ADD.B #$10,IBEN
MOVE.B #3,CHECK
CMP.B #$62,IBEN
BNE.L HOLDT2
MOVE.B #7,CHECK
RTS
;////////////////////////////////////////
FADERUTINEN:
INIT:
CMP.B #4,CHECK
BGE.L DEMO4
MOVE.W (A1,D5.W),D0
CMP.W #$FFFE,D0
BNE.S GOON
MOVE.L #COLOURS+2,A1
MOVEQ #0,D5
RTS
GOON: BSR.S FADESETUP
ADD.W #4,D5
RTS
FADESETUP:
MOVE.W #$F00,D1
BSR.S FADE
MOVE.W #$0F0,D1
BSR.S FADE
MOVE.W #$00F,D1
FADE:
MOVE.W D0,D3 ;SAFE I D3
AND.W D1,D3 ;FJERN R,G ELLER B
BEQ.L HOLDT2 ;HVIS NUL HOLDT
AND.W #$111,D1 ;FIND UD AF, HVILKET "BOGSTAV, DER NEDT."
SUB.W D1,(A1,D5.W) ;TRAEK DET FRA
BNE.L HOLDT2
SUB.B #1,IB
BNE.L HOLDT2
MOVE.B #4,CHECK
RTS
;////////////////////////////////////////
BITPLANESETUP:
MOVE.L #PIC,D0
MOVE.W D0,BITPL1+6
SWAP D0
MOVE.W D0,BITPL1+2
MOVE.L #PIC+10240,D0
MOVE.W D0,BITPL2+6
SWAP D0
MOVE.W D0,BITPL2+2
MOVE.L #PIC+20480,D0
MOVE.W D0,BITPL3+6
SWAP D0
MOVE.W D0,BITPL3+2
MOVE.L #PIC+30720,D0
MOVE.W D0,BITPL4+6
SWAP D0
MOVE.W D0,BITPL4+2
MOVE.L #PIC+40960,D0
MOVE.W D0,BITPL5+6
SWAP D0
MOVE.W D0,BITPL5+2
RTS
BITPLANESETUP3:
MOVE.L #PIC3,D0
MOVE.W D0,BITPL1+6
SWAP D0
MOVE.W D0,BITPL1+2
MOVE.L #PIC3+10240,D0
MOVE.W D0,BITPL2+6
SWAP D0
MOVE.W D0,BITPL2+2
MOVE.L #PIC3+20480,D0
MOVE.W D0,BITPL3+6
SWAP D0
MOVE.W D0,BITPL3+2
MOVE.L #PIC3+30720,D0
MOVE.W D0,BITPL4+6
SWAP D0
MOVE.W D0,BITPL4+2
MOVE.L #PIC3+40960,D0
MOVE.W D0,BITPL5+6
SWAP D0
MOVE.W D0,BITPL5+2
RTS
PLANE1_2:
MOVE.L #PIC2,D0
MOVE.W D0,BITPL1+6
SWAP D0
MOVE.W D0,BITPL1+2
RTS
PLANE2_2:
MOVE.L #PIC2+10240,D0
MOVE.W D0,BITPL2+6
SWAP D0
MOVE.W D0,BITPL2+2
RTS
P