home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
ro11.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
8KB
|
456 lines
s:
move.l #$60000,$dff0a0
move.w #[41112/2],$dff0a4
move.w #358,$dff0a6
move.w #65,$dff0a8
move.w #$83a1,$dff096
move.l $04,a6
jsr -132(a6)
move.l #size,d0
moveq #2,d1
jsr -198(a6)
move.l d0,cladr
beq.L error
lea gfxname,a1
jsr -408(a6)
move.l d0,gfxbase
lea diskfontname,a1
jsr -408(a6)
beq.L error
move.l d0,fontlbase
move.l fontlbase,a6
lea textattr,a0
jsr -30(a6)
beq.L error
move.l d0,fontbase
move.l $2230,oldclist
move.l #newclist,$2230
move.l gfxbase,a6
lea bitmap,a0
move.l #$01,d0
move.l #336,d1
move.l #200,d2
jsr -390(a6)
move.l #$60000,plane1
lea rastport,a1
jsr -198(a6)
lea rastport,a1
move.l fontbase,a0
jsr -66(a6)
move.l #bitmap,r_bitmap
lea rastport,a1
jsr -48(a6)
writetext:
lea rastport,a1
xcen:
move.l #270,d0
ycen:
move.l #122,d1
jsr -240(a6)
lea rastport,a1
hent:
lea hoptext,a0
move.l #11,d0
jsr -60(a6)
labt1:
move.l yctab,ycen+2
labt2:
move.l xctab,xcen+2
add.l #4,labt1+2
add.l #4,labt2+2
add.l #11,hent+2
cmp.l #hoptext+66,hent+2
bne writetext
move.l #text,taller
move.l #flimstart,flimtal
lea sint,a6
move.l $6c,oldirq+2
move.l #newirq,$6c
wait:
cmpi.b #$ff,$dff006
bne wait
btst #6,$bfe001
beq slut
add.w #$111,f1+6
add.w #$111,f2+6
add.w #$111,f3+6
add.w #$111,f4+6
add.w #$111,f5+6
add.w #$111,f6+6
add.w #$111,f7+6
add.w #$111,f8+6
add.w #$111,f9+6
add.w #$111,fa+6
add.w #$111,fb+6
add.w #$111,fc+6
add.w #$111,fd+6
add.w #$111,fe+6
add.w #$111,ff+6
add.w #$111,fg+6
add.w #$111,fh+6
move.b (a6)+,l1
move.b l1,get
add.b #$01,get
move.b get,l2
add.b #$01,get
move.b get,l3
add.b #$01,get
move.b get,l4
add.b #$01,get
move.b get,l5
add.b #$01,get
move.b get,l6
add.b #$01,get
move.b get,l7
add.b #$01,get
move.b get,l8
add.b #$01,get
move.b get,l9
add.b #$01,get
move.b get,la
add.b #$01,get
move.b get,lb
add.b #$01,get
move.b get,lc
add.b #$01,get
move.b get,ld
add.b #$01,get
move.b get,le
cmp.l #endsin,a6
bne wait
lea sint,a6
bra wait
newirq:
movem.l d0-d7/a0-a6,-(sp)
move.l gfxbase,a6
move.l flimtal,a4
move.w (a4)+,hopflim
move.l a4,flimtal
cmp.l #endflim,a4
bne tilb
move.l #flimstart,flimtal
tilb:
add.w #$0002,label1
add.w #$0002,label5
cmp.b #$cf,label1+1
beq norstreg
bra wait2
norstreg:
move.w #$8d05,label1
move.w #$a305,label5
wait2:
cmp.b #$01,tjek
beq op
add.b #$01,la1
add.b #$01,la2
add.b #$01,la3
add.b #$01,la4
add.b #$01,la5
add.b #$01,la6
add.w #$2a,skar
cmp.b #$77,la6
bne kajv
move.b #$01,tjek
move.b #$12,prio
bra kajv
op:
sub.b #$01,la1
sub.b #$01,la2
sub.b #$01,la3
sub.b #$01,la4
sub.b #$01,la5
sub.b #$01,la6
sub.w #$2a,skar
cmp.b #$42,la1
bne kajv
move.b #$00,tjek
move.b #$02,prio
kajv:
lea rastport,a1
move.l #4,d0
clr.l d1
clr.l d2
move.l #100,d3
move.l #336,d4
move.l #116,d5
jsr -396(a6)
sub.b #1,rows
bne.s exit
move.b #6,rows
lea rastport,a1
move.l #312,d0
move.l #100,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 4,a6
move.l cladr,a1
move.l #size,d0
jsr -210(a6)
jsr -138(a6)
move.l oldirq+2,$6c
move.l gfxbase,a0
move.l oldclist,50(a0)
move.l $04,a6
jsr -414(a6)
move.l gfxbase,a6
move.l fontbase,a1
jsr -78(a6)
move.l $04,a6
move.l fontlbase,a1
jsr -414(a6)
move.l gfxbase,a1
jsr -414(a6)
error:
rts
newclist:
dc.w $008e,$2c81,$0090,$f4c1,$0092,$0038,$0094,$00d0
dc.w $0102,$0000,$0104,$0000,$0108,$0002,$010a,$0002
dc.w $0100,$1000,$0180,$0000,$0182,$0fff
dc.w $00e0,$0006,$00e2,$1000
dc.w $3011,$fffe,$180,$103
dc.w $3111,$fffe,$180,$204
dc.w $3211,$fffe,$180,$305
dc.w $3311,$fffe,$180,$406
dc.w $3411,$fffe,$180,$507
dc.w $3511,$fffe,$180,$608
dc.w $3611,$fffe,$180,$709
dc.w $3711,$fffe,$180,$80a
dc.w $3811,$fffe,$180,$90b
dc.w $3911,$fffe,$180,$a0c
dc.w $3a11,$fffe,$180,$b0d
dc.w $3b11,$fffe,$180,$c0e
dc.w $3c11,$fffe,$180,$d0f
dc.w $3d11,$fffe,$180,$90b
dc.w $3e11,$fffe,$180,$608
dc.w $3f11,$fffe,$180,$406
dc.w $4011,$fffe,$180,$204
dc.w $4111,$fffe,$180,$102
la1:
dc.w $4211,$fffe,$180,$800,$100
prio:
dc.w $0200
la2:
dc.w $4311,$fffe,$180,$b00
la3:
dc.w $4411,$fffe,$180,$d00
la4:
dc.w $4511,$fffe,$180,$b00
la5:
dc.w $4611,$fffe,$180,$800
la6:
dc.w $4711,$fffe,$180,$102,$00e0,$0006,$00e2
skar:
dc.w $2000,$0100,$1200
dc.w $7911,$fffe,$180,$204
dc.w $7a11,$fffe,$180,$406
dc.w $7b11,$fffe,$180,$608
dc.w $7c11,$fffe,$180,$90b
dc.w $7d11,$fffe,$180,$d0f
dc.w $7e11,$fffe,$180,$c0e
dc.w $7f11,$fffe,$180,$b0d
dc.w $8011,$fffe,$180,$a0c
dc.w $8111,$fffe,$180,$90b
dc.w $8211,$fffe,$180,$80a
dc.w $8311,$fffe,$180,$709
dc.w $8411,$fffe,$180,$608
dc.w $8511,$fffe,$180,$507
dc.w $8611,$fffe,$180,$406
dc.w $8711,$fffe,$180,$305
dc.w $8811,$fffe,$180,$204
dc.w $8911,$fffe,$180,$103
dc.w $8a11,$fffe,$180,$000
dc.w $00e0,$0006,$00e2,$0f6c
label1:
dc.w $8d01,$fffe,$180,$000,$180,$100,$180,$200,$180,$300,$180,$400
dc.w $180,$500,$180,$600,$180,$700,$180,$800,$180,$900
dc.w $180,$a00,$180,$b00,$180,$c00,$180,$d00,$180,$e00
dc.w $180,$f00,$180,$0
f1:
dc.w $9011,$fffe,$182,$111
f2:
dc.w $9111,$fffe,$182,$222
f3:
dc.w $9211,$fffe,$182,$333
f4:
dc.w $9311,$fffe,$182,$444
f5:
dc.w $9411,$fffe,$182,$555
f6:
dc.w $9511,$fffe,$182,$666
f7:
dc.w $9611,$fffe,$182,$777
f8:
dc.w $9711,$fffe,$182,$888
f9:
dc.w $9811,$fffe,$182,$999
fa:
dc.w $9911,$fffe,$182,$aaa
fb:
dc.w $9a11,$fffe,$182,$bbb
fc:
dc.w $9b11,$fffe,$182,$ccc
fd:
dc.w $9c11,$fffe,$182,$ddd
fe:
dc.w $9d11,$fffe,$182,$eee
ff:
dc.w $9e11,$fffe,$182,$fff
fg:
dc.w $9f11,$fffe,$182,$111
fh:
dc.w $a011,$fffe,$182,$222
label5:
dc.w $a301,$fffe,$180,$000,$180,$01,$180,$02,$180,$03,$180,$04
dc.w $180,$05,$180,$06,$180,$07,$180,$08,$180,$09
dc.w $180,$0a,$180,$0b,$180,$0c,$180,$0d,$180,$0e
dc.w $180,$0f,$180,$000
dc.w $a511,$fffe,$182
hopflim:
dc.w $fff
dc.w $0100,$1200,$e0,$6,$e2,$1350,$108,$2,$10a,$2,$102,$0,$104,$0
l1:
dc.w $b011,$fffe,$180,$003,$0100,$0200
l2:
dc.w $b111,$fffe,$180,$004
l3:
dc.w $b211,$fffe,$180,$005
l4:
dc.w $b311,$fffe,$180,$006
l5:
dc.w $b411,$fffe,$180,$007
l6:
dc.w $b511,$fffe,$180,$008
l7:
dc.w $b611,$fffe,$180,$009
l8:
dc.w $b711,$fffe,$180,$008
l9:
dc.w $b811,$fffe,$180,$007
la:
dc.w $b911,$fffe,$180,$006
lb:
dc.w $ba11,$fffe,$180,$005
lc:
dc.w $bb11,$fffe,$180,$004
ld:
dc.w $bc11,$fffe,$180,$003
le:
dc.w $bd11,$fffe,$180,$000
dc.w $92,$38,$94,$d0
dc.w $102,$24,$104,24,$108,$2,$10a,$2
dc.w $100,$1200
dc.w $e0,$6,$e2,$1f00
dc.w $fe11,$fffe
dc.w $ffff,$fffe
endl:
even
size=endl-newclist
even
cladr:
dc.l 0
even
text:
dc.b "DANISH DEMO DUO INTRO II !!!"
dc.b "!!!!! "
end:
even
hoptext:
dc.b "DANISH DEMO"
dc.b " DUO "
dc.b " PRESENTS "
dc.b "EAGLES NEST"
dc.b " AND "
dc.b " ARKANOID "
even
xctab:
dc.l 270,284,350,350,360,322
even
yctab:
dc.l 143,164,191,213,235,270
even
flimstart:
dc.w $1,$2,$3,$4,$5,$6,$7,$8,$9,$a,$b,$c,$d,$e,$f
dc.w $1f,$2e,$3d,$4c,$5b,$6a,$79,$88,$97,$a6,$b5,$c4,$d3,$e2,$f1
dc.w $1e2,$2d3,$3c4,$4b5,$5a6,$697,$788,$879
dc.w $96a,$a5b,$b4c,$c3d,$d2e,$e1f,$f0e
dc.w $e1f,$d2e,$c3d,$b4c,$a5b,$96a,$879,$788
dc.w $697,$5a6,$4b5,$3c4,$2d3,$1e2
dc.w $f1,$e2,$d3,$c4,$b5,$a6,$97,$88,$79,$6a,$5b,$4c,$3d,$2e,$1f
dc.w $f,$e,$d,$c,$b,$a,$9,$8,$7,$6,$5,$4,$3,$2,$1,$0
endflim:
even
flimtal:
dc.l 0
even
sint:
dc.b 197,195,193,191,189,187,185,183,181,179,178,176,174,173,171,170
dc.b 169,168,167,166,165,165,164,164,164,164,164,164,164,165,165,166
dc.b 167,168,169,170,171,173,174,176,178,179,181,183,185,187,189,191
dc.b 193,195,197,200,202,204,206,208,210,212,214,216,217,219,221,222
dc.b 224,225,226,227,228,229,230,231,231,231,231,231,231,231,230,230
dc.b 229,228,227,226,225,224,222,221,219,217,216,214,212,210,208,206
dc.b 204,202,200
endsin:
even
taller:
dc.l 0
even
get:
dc.b $0
even
tjek:
dc.b $00
even
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
kurt:
dc.l 0
even
diskfontname:
dc.b "diskfont.library",0
even
; -------------------
fontname:
dc.b "high.font",0
even
textattr:
dc.l fontname
dc.w 17
dc.w 0
; -------------------
fontlbase:
dc.l 0
; -------------------
fontbase:
dc.l 0