home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
twosprdemo.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
9KB
|
314 lines
org $40000
load $40000
s:
move.l #$50000,$dff0a0
move.w #25000,$dff0a4
move.w #300,$dff0a6
move.w #65,$dff0a8
move.w #$83a1,$dff096
move.l $04,a6
lea gfxname,a1
jsr -408(a6)
move.l d0,gfxbase
move.l d0,a0
move.l 50(a0),oldclist
move.l #newclist,50(a0)
move.l gfxbase,a6
lea bitmap,a0
move.l #$01,d0
move.l #336,d1
move.l #256,d2
jsr -390(a6)
move.l #$4c800,plane1
lea rastport,a1
jsr -198(a6)
move.l #bitmap,r_bitmap
lea rastport,a1
jsr -48(a6)
move.l #text,taller
move.l $6c,oldirq+2
move.l #newirq,$6c
wait:
move.l #$60000,a0
move.w $dff012,d1
l1: cmpi.b #$a0,$dff006
bne l1
move.l (a0)+,$44500
move.l 20(a0),$44548
move.l 40(a0),$44590
move.l 60(a0),$445d8
move.l 80(a0),$44620
move.l 100(a0),$44668
; next spr
move.l 5632(a0),$45500
move.l 5652(a0),$45548
move.l 5672(a0),$45590
move.l 5692(a0),$455d8
move.l 5712(a0),$45620
move.l 5732(a0),$45668
cmp.w $dff012,d1
bne end1
cmpi.l #$61500,a0
beq wait
l2:cmpi.b #$00,$dff006
bne l2
jmp l1
end1:
jmp slut
newirq:
movem.l d0-d7/a0-a6,-(sp)
move.l gfxbase,a6
lea rastport,a1
move.l #2,d0
move.l #0,d1
move.l #0,d2
move.l #1,d3
move.l #336,d4
move.l #20,d5
jsr -396(a6)
sub.b #1,rows
bne.s exit
move.b #4,rows
lea rastport,a1
move.l #320,d0
move.l #16,d1
jsr -240(a6)
lea rastport,a1
move.l taller,a0
move.l #1,d0
jsr -60(a6)
addq.l #1,taller
cmp.l #end,taller
blt.s exit
move.l #text,taller
exit:
movem.l (sp)+,d0-d7/a0-a6
oldirq:
jmp $00000000
slut:
move.w #3,$dff096
move.l oldirq+2,$6c
move.l gfxbase,a0
move.l oldclist,50(a0)
move.l $04,a6
jmp -414(a6)
newclist:
dc.w $008e,$2c91,$0090,$41f0,$0092,$0038,$0094,$00d0
dc.w $0120,$0004,$0122,$4500,$0124,$0004,$0126,$4548
dc.w $0128,$0004,$012a,$4590,$012c,$0004,$012e,$45d8
dc.w $0130,$0004,$0132,$4620,$0134,$0004,$0136,$4668
dc.w $0102,$0000,$0104,$0024,$0108,$0002,$010a,$0002
dc.w $0100,$1200,$0180,$0000
dc.w $00e0,$0004,$00e2,$c800
dc.w $2a11,$fffe,$0180,$000
dc.w $2b11,$fffe,$0180,$111
dc.w $2c11,$fffe,$0180,$222
dc.w $2d11,$fffe,$0180,$333
dc.w $2e11,$fffe,$0180,$444
dc.w $2f11,$fffe,$0180,$555
dc.w $3011,$fffe,$0180,$666
dc.w $3111,$fffe,$0180,$777
dc.w $3211,$fffe,$0180,$888
dc.w $3311,$fffe,$0180,$999
dc.w $3411,$fffe,$0180,$aaa
dc.w $3511,$fffe,$0180,$bbb
dc.w $3611,$fffe,$0182,$888,$0180,$ccc
dc.w $3711,$fffe,$0182,$666,$0180,$ddd
dc.w $3811,$fffe,$0182,$444,$0180,$eee
dc.w $3911,$fffe,$0182,$222,$0180,$fff
dc.w $3a11,$fffe,$0182,$444,$0180,$ddd
dc.w $3b11,$fffe,$0182,$666,$0180,$ccc
dc.w $3c11,$fffe,$0182,$888,$0180,$bbb
dc.w $3d11,$fffe,$0180,$aaa
dc.w $3e11,$fffe,$0180,$999
dc.w $3f11,$fffe,$0180,$888
dc.w $4011,$fffe,$0180,$777
dc.w $4111,$fffe,$0180,$666
dc.w $4211,$fffe,$0180,$555
dc.w $4311,$fffe,$0180,$444
dc.w $4411,$fffe,$0180,$333
dc.w $4511,$fffe,$0180,$222
dc.w $4611,$fffe,$0180,$111
dc.w $4711,$fffe,$0180,$000
dc.w $4a11,$fffe,$0180,$fff
dc.w $4b11,$fffe,$0180,$000
dc.w $4c1f,$fffe,$0180,$000
c1:dc.w $01a2,$0777,$01a4,$0999,$01a6,$0555
c2:dc.w $01aa,$0777,$01ac,$0999,$01ae,$0555
c3:dc.w $01b2,$0777,$01b4,$0999,$01b6,$0555
dc.w $a001,$ff00
dc.w $0120,$0004,$0122,$5500,$0124,$0004,$0126,$5548
dc.w $0128,$0004,$012a,$5590,$012c,$0004,$012e,$55d8
dc.w $0130,$0004,$0132,$5620,$0134,$0004,$0136,$5668
dc.w $0182,$0
dc.w $ffff,$fffe
text:
dc.b " HELLO FREAK, this is the DANISH DEMO DUO ! We are proud to"
dc.b " present this little message to HQC ! We are very glad, that"
dc.b " you (R.....) wants to swap routines with us. This not the "
dc.b "final version of the intro, but we hope you like it anyway."
dc.b "HELLOS goes to HQC, PCT (where is our disk, send it back), "
dc.b "2000 AD, C64CG, LCC, ANCOR. bye bye R..... ! "
end:
even
taller:
dc.l 0
oldclist:
dc.l 0
gfxbase:
dc.l 0
gfxname:
dc.b "graphics.library",0
even
bitmap:
blk.w 4,0
plane1:
blk.l 20,0
rastport:
dc.l 0
r_bitmap:
blk.l 30,0
rows:
dc.b 3
even
slu:
org $44500
load $44500
Spr4a:
dc.w $70a0,$8000
dc.w $0002FBF8,$0002FBF8
dc.w $0002FBFC,$00028A04,$0002DB06,$0002AAFA
dc.w $0002DBFF,$0002AA01,$0002DBFF,$0002ABFF
dc.w $0002D800,$0002A800,$0002D81F,$0002A81F
dc.w $0002D81F,$0002A811,$0002D81B,$0002A815
dc.w $0002D81F,$0002A81F,$0002D800,$0002A800
dc.w $0002DBFF,$0002ABFF,$0002DBFF,$0002AA01
dc.w $0002DB06,$0002AAFA,$0002FBFC,$00028A04
dc.w $0002FBF8,$0002FBF8
dc.w $0000,$0000
spr4b:
dc.w $7090,$8100
dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
dc.w $0000,$0000
spr4:
dc.w $7080,$8100
dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
dc.w $0000,$0000
Spr3:
dc.w $7060,$8100
dc.w $0002FBFF,$0002FBFF,$0002FBFF,$00028A01
dc.w $0002DB03,$0002AAFD,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002DBF0,$0002ABF0,$0002DBF0,$0002AA10
dc.w $0002DB30,$0002AAD0,$0002DBF0,$0002AA10
dc.w $0002DBF0,$0002ABF0,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB03,$0002AAFD
dc.w $0002FBFF,$00028A01,$0002FBFF,$0002FBFF
dc.w $0000,$0000
spr2:
dc.w $7050,$8100
dc.w $0002F81F,$0002F81F,$0002F81F,$00028811
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002DBFB,$0002ABF5,$0002DBFB,$0002AA05
dc.w $0002DB03,$0002AAFD,$0002DBFB,$0002AA05
dc.w $0002DBFB,$0002ABF5,$0002D81B,$0002A815
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002F81F,$00028811,$0002F81F,$0002F81F
dc.w $0000,$0000
spr1:
dc.w $7040,$8100
dc.w $0002ffff,$0002ffff,$0002FFFF,$00028001
dc.w $0002C003,$0002BFFD,$0002FFFF,$00028001
dc.w $0002FFFF,$0002FFFF,$00020000,$00020000
dc.w $000207C0,$000207C0,$000207C0,$00020440
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000207C0,$00020440,$000207C0,$000207C0
dc.w $0000,$0000
even
org $45500
load $45500
Spr4aa:
dc.w $b0a0,$8000
dc.w $0002FBF8,$0002FBF8
dc.w $0002FBFC,$00028A04,$0002DB06,$0002AAFA
dc.w $0002DBFF,$0002AA01,$0002DBFF,$0002ABFF
dc.w $0002D800,$0002A800,$0002D81F,$0002A81F
dc.w $0002D81F,$0002A811,$0002D81B,$0002A815
dc.w $0002D81F,$0002A81F,$0002D800,$0002A800
dc.w $0002DBFF,$0002ABFF,$0002DBFF,$0002AA01
dc.w $0002DB06,$0002AAFA,$0002FBFC,$00028A04
dc.w $0002FBF8,$0002FBF8
dc.w $0000,$0000
spr4ba:
dc.w $b090,$8100
dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
dc.w $0000,$0000
spr4a1:
dc.w $b080,$8100
dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
dc.w $0000,$0000
Spr3a:
dc.w $b060,$8100
dc.w $0002FBFF,$0002FBFF,$0002FBFF,$00028A01
dc.w $0002DB03,$0002AAFD,$0002DBFF,$0002AA01
dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
dc.w $0002DBF0,$0002ABF0,$0002DBF0,$0002AA10
dc.w $0002DB30,$0002AAD0,$0002DBF0,$0002AA10
dc.w $0002DBF0,$0002ABF0,$0002DBFF,$0002ABFF
dc.w $0002DBFF,$0002AA01,$0002DB03,$0002AAFD
dc.w $0002FBFF,$00028A01,$0002FBFF,$0002FBFF
dc.w $0000,$0000
spr2a:
dc.w $b050,$8100
dc.w $0002F81F,$0002F81F,$0002F81F,$00028811
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002DBFB,$0002ABF5,$0002DBFB,$0002AA05
dc.w $0002DB03,$0002AAFD,$0002DBFB,$0002AA05
dc.w $0002DBFB,$0002ABF5,$0002D81B,$0002A815
dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
dc.w $0002F81F,$00028811,$0002F81F,$0002F81F
dc.w $0000,$0000
spr1a:
dc.w $b040,$8100
dc.w $0002ffff,$0002ffff,$0002FFFF,$00028001
dc.w $0002C003,$0002BFFD,$0002FFFF,$00028001
dc.w $0002FFFF,$0002FFFF,$00020000,$00020000
dc.w $000207C0,$000207C0,$000207C0,$00020440
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000206C0,$00020540,$000206C0,$00020540
dc.w $000207C0,$00020440,$000207C0,$000207C0
dc.w $0000,$0000