home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
scrollup2.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
789b
|
53 lines
j:
move.l execbase,a6
lea gfxname,a1
jsr oldopenlibrary(a6)
move.l d0,gfxbase
move.l $2230,(a7)
move.l #copper,$2230
loop:
move.w copper+6,kurt
cmp.b #$5560,kurt
bne next
move.w #$0000,copper+6
next:
move.b $dff006,d0
cmp.b #$ff,d0
bne next
next2:move.b $dff006,d0
cmp.b #$fe,d0
bne next2
move.w copper+2,d0
swap d0
move.w copper+6,d0
add.l #40,d0
move.w d0,copper+6
swap d0
andi.b #64,$bfe001
bne loop
move.l (a7),$2230
rts
copper:
dc.w $00e0,$0004
dc.w $00e2,$0000
dc.w $0180,$0000
dc.w $0182,$0aaa
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 $0120,$0004,$0122,$0000
dc.w $ffff,$ff00
execbase = 4
oldopenlibrary = -30-378
even
gfxname: dc.b "graphics.library",0
even
gfxbase: dc.l 0
kurt:
dc.l 0