home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
copd.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
2KB
|
104 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
move.l #$7f17a,a5
move.l a5,a7
loop:
move.b $dff006,d0
cmp.b #$ff,d0
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
move.b (a7),poke1
move.b 1(a7),poke2
addq.l #2,a7
cmp.l #$7f1b5,a7
bne loop
move.l a5,a7
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,$0000
dc.w $010a,$0000
dc.w $00e0,$0000
dc.w $00e2,$0006
dc.w $0182,$000f
dc.w $0180,$0000
dc.w $3001,$ff00
dc.w $0180,$0000
dc.w $0180,$0fff
dc.w $3201,$ff00
dc.w $0180,$0fff
dc.w $0180,$fff0
dc.w $4201,$ff00
dc.w $0180,$fff0
dc.w $0180,$f0f4
dc.w $4401,$ff00
dc.w $0180,$f0f4
dc.w $0180,$0000
dc.w $4501,$ff00
poke:
dc.w $00e0,$0000
dc.w $00e2,$0000
dc.w $6f01,$ff00
dc.w $00e0,$0000
dc.w $00e2,$0006
dc.w $7001,$ff00
dc.w $0180,$0000
dc.w $0180,$1234
dc.w $7201,$ff00
dc.w $0180,$1234
dc.w $0180,$4321
dc.w $8201,$ff00
dc.w $0180,$4321
dc.w $0180,$5678
dc.w $8401,$ff00
dc.w $0180,$5678
dc.w $0180,$0000
poke1:
dc.w $9001,$ff00
dc.w $0182,$0000
dc.w $0180,$ffff
poke2:
dc.w $9101,$ff00
dc.w $0182,$0000
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
tab:
dc.b $90,$91,$91,$92,$92,$93,$93,$94,$94,$95,$95,$96,$96,$97,$97
dc.b $98,$98,$99,$99,$9a,$9a,$9b,$9b,$9c,$9c,$9d,$9d,$9e,$9e,$9f,$9e
dc.b $9f,$9d,$9e,$9c,$9d,$9b,$9c,$9a,$9b,$99,$9a,$98,$99,$97,$98,$96
dc.b $97,$95,$96,$94,$95,$93,$94,$92,$93,$91,$92,$90,$91