home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
ddd-sprites.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
2KB
|
101 lines
org $38000
load $38000
j:
jmp amiga
execbase=4
permit=-138
even
gfxname:
dc.b "graphics.library",0
even
gfxbase:
dc.l 0
oldc:
dc.l 0
;
; openlib
;
amiga:
move.l execbase,a6
lea gfxname,a1
jsr -408(a6)
move.l d0,gfxbase
clr.l d0
; stopmultitasking
move.l execbase,a6
jsr -132(a6)
move.l gfxbase,a0
add.l #$32,a0
move.w #$0080,$dff096
move.l (a0),oldc
move.l #coplist,(a0)
move.l a0,-(a7)
move.w #$8080,$dff096
move.b #151,d0
move.b #184,d1
move.b #64,d2
move.b #44,d3
move.b #1,d4
move.b #1,d5
;
; wait for raster
;
vloop:
move.w $dff006,d6
and.w #$ff00,d6
cmp.w #$c000,d6
bne vloop
add.b d4,d2
subq.b #1,d0
bne mad
move.b #151,d0
eor.b #$fe,d4
mad:
move.b d2,$25001
add.b d5,d3
subq.b #1,d1
bne sen
move.b #194,d1
eor.b #$fe,d5
sen:
bottun:
andi.b #64,$bfe001
bne vloop
move.l (a7)+,a0
move.l oldc,(a0)
rts
coplist:
dc.w $0100,$1200
dc.w $00e0,$0004,$00e2,$0000
dc.w $008e,$2c91,$0090,$f1f0
dc.w $0092,$0038,$0094,$00d0
dc.w $0096,$84a0
dc.w $0104,$0004,$0108,$0000,$010a,$0001
;
dc.w $0180,$0000,$0182,$0fe0,$0184,$030c
dc.w $0186,$050c,$0188,$080d,$018a,$0b0e
dc.w $018c,$0e0e,$018e,$0f0c
dc.w $0190,$0fff,$0192,$0888,$0194,$0555
dc.w $0196,$0555,$0198,$0222,$0111,$0dcd
dc.w $019c,$0eee,$019e,$0000
dc.w $01a2,$0888,$01a4,$0fff,$01a6,$0555
; spr pointer
dc.w $0120,$0002,$0122,$5000,$0124,$0003,$0126,$0000
dc.w $0128,$0002,$012a,$5000,$012c,$0003,$012e,$0000
dc.w $0130,$0003,$0132,$0000,$0134,$0003,$0136,$0000
dc.w $0138,$0003,$013a,$0000,$013c,$0003,$013e,$0000
sprite:
org $25000
load $25000
;spr data
dc.w $6d00,$7d00
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