home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
eccintro.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
2KB
|
129 lines
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 #200,d2
jsr -390(a6)
move.l #$70000,plane1
lea rastport,a1
jsr -198(a6)
move.l #bitmap,r_bitmap
lea rastport,a1
jsr -48(a6)
move.l #scrollm,zeiger
move.l $6c,oldirq+2
move.l #newirq,$6c
wait:
jsr scroll
or.b #2,$bfe001
btst #6,$bfe001
bne.s wait
move.l oldirq+2,$6c
move.l gfxbase,a0
move.l oldclist,50(a0)
move.l $04,a6
move.l gfxbase,a1
jsr -414(a6)
jsr stop
rts
newirq:
jsr sound
movem.l d0-d7/a0-a6,-(sp)
move.l gfxbase,a6
lea rastport,a1
move.l #$02,d0
clr.l d1
clr.l d2
move.l #090,d3
move.l #336,d4
move.l #200,d5
jsr -396(a6)
sub.b #$02,rows
bne.s exit
move.b #$08,rows
lea rastport,a1
move.l #320,d0
move.l #098,d1
jsr -240(a6)
lea rastport,a1
move.l zeiger,a0
move.l #$01,d0
jsr -60(a6)
addq.l #$01,zeiger
cmp.l #end,zeiger
blt.s exit
move.l #scrollm,zeiger
exit:
movem.l (sp)+,d0-d7/a0-a6
oldirq:
jmp $00000000
scroll:
andi.b #253,$bfe001
jsr -270(a6)
lea po1,a2
move.l #-2*20,d0
add.w d0,(a2)
lea po2,a2
move.l #-2*10,d0
add d0,(a2)
lea po3,a2
add #1,(a2)
rts
sound:
move.l #$60100,$dff0a0
move.w #[37560/2],$dff0a4
move.w #360,$dff0a6
move.w #64,$dff0a8
move.w #$8201,$dff096
rts
stop:move.w #$0001,$dff096
newclist:
dc.w $008e,$2c81,$0090,$1cc1,$0092,$0038,$0094,$00d0
dc.w $0102,$0000,$0104,$0000,$010a,$0000
dc.w $0100,$4200,$0180,$0000,$0182
po3:dc.w $0fff
dc.w $0184,$0fff
dc.w $0188,$0444,$0190,$0aaa
dc.w $00e0,$0007,$00e2,$0000
dc.w $00e4,$0004,$00e6
po1:dc.w $0000
dc.w $00e8,$0004,$00ea,$0000
dc.w $00ec,$0004,$00ee
po2:dc.w $0000
dc.w $8201,$fffe,$0180,$000f,$8501,$fffe,$0180,$000a
dc.w $9201,$fffe,$0180,$0007,$9501,$fffe,$0180,$0000
dc.w $010a,$0000,$0108,$0002
dc.w $ffff,$fffe
scrollm:
dc.b "THE E.C.C. HOLLAND GREETINGS TO ALL PIRATES "
end:
even
zeiger:
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 2