home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
cop9.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
1KB
|
71 lines
; copper exempel til amiga mc
org $7f000
load $7f000
run:
bsr getbas
move.l gfxbase,a0
add.l #$32,a0
move.w #$0080,$dff096
move.l #copper,(a0)
move.w #$8080,$dff096
loop:
cmpi.b #$ff,$dff006
bne loop
move.w poke+2,d0
swap d0
move.w poke+6,d0
add.l #40,d0
move.w d0,poke+6
swap d0
move.w d0,poke+2
andi.b #64,$bfe001
bne loop
jmp $fc0000
copper:
dc.w $0100,$1200
dc.w $008e,$1f81
dc.w $0090,$2ec1
dc.w $0092,$38
dc.w $0094,$d0
dc.w $0108,$0120
dc.w $010a,$0022
dc.w $010c,$0012
poke:
dc.w $00e0,$0000
dc.w $00e2,$0000
dc.w $0182,$000f
dc.w $0180,$0000
dc.w $4001,$ff00
dc.w $0182,$0000
dc.w $0180,$0f00
dc.w $4201,$ff00
dc.w $0182,$0001
dc.w $0180,$ffff
dc.w $5200,$ff00
dc.w $0182,$0002
dc.w $0180,$0000
dc.w $5401,$ff00
dc.w $0182,$0003
dc.w $0180,$ffff
dc.w $a001,$ff00
dc.w $0182,$ffd0
dc.w $0180,$0000
dc.w $ffff,$fffe
execbase = 4
oldopenlibrary = -30-378
even
gfxname: dc.b "graphics.library",0
even
gfxbase: dc.l 0
getbas:
move.l execbase,a6
lea gfxname,a1
jsr oldopenlibrary(a6)
move.l d0,gfxbase
rts