home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
cop5.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
1KB
|
85 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:
move.b $dff006,d0
cmp.b #$ff,d0
bne loop
move.w poke+2,d0
swap d0
move.w poke+6,d0
add.w #10,poki
add.l #40,d0
move.w d0,poke+6
swap d0
move.w d0,poke+2
move.w $dff00a,pake+2
andi.b #64,$bfe001
bne loop
; move.w #0080,$dff096
; rts
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,$0000
dc.w $010a,$0000
poke:
dc.w $00e0,$0000
dc.w $00e2,$0000
dc.w $0182,$000f
dc.w $0180,$0000
dc.w $2001,$ff00
dc.w $0180
poki:
dc.w $0f00
dc.w $3001,$ff00
dc.w $0180,$0000
dc.w $4001,$ff00
dc.w $0180,$1111
dc.w $5001,$ff00
dc.w $0180,$0000
dc.w $6001,$ff00
dc.w $0180,$00f0
pake:
dc.w $00e0,$0000
dc.w $00e2,$0000
dc.w $8001,$ff00
dc.w $0180,$ff33
dc.w $8101,$ff10
dc.w $0180,$ff35
dc.w $8501,$ff11
dc.w $0180,$ff34
dc.w $8601,$ff00
dc.w $0180,$ff00
dc.w $f001,$ff00
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