home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
copx1.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
1KB
|
98 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
adder:
add.l #40,d0
move.w d0,poke+6
swap d0
move.w d0,poke+2
addq.w #1,pike+2
addq.w #1,pike1+2
addq.w #1,pike2+2
addq.w #1,pike3+2
addq.w #1,pike4+2
addq.w #1,pike5+2
andi.b #64,$bfe001
beq slut
btst #10,$dff016
bne loop
add.l #40,adder+2
jmp loop
slut:
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 $a851,$fffe
pike:
dc.w $0180,$0fff
dc.w $a8c5,$fffe
dc.w $0180,$0000
dc.w $a951,$fffe
pike1:
dc.w $0180,$0fff
dc.w $a9c5,$fffe
dc.w $0180,$0000
dc.w $aa51,$fffe
pike2:
dc.w $0180,$0fff
dc.w $aac5,$fffe
dc.w $0180,$0000
dc.w $ab51,$fffe
pike3:
dc.w $0180,$0fff
dc.w $abc5,$fffe
dc.w $0180,$0000
dc.w $ac51,$fffe
pike4:
dc.w $0180,$0fff
dc.w $acc5,$fffe
dc.w $0180,$0000
dc.w $ad51,$fffe
pike5:
dc.w $0180,$0fff
dc.w $adc5,$fffe
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