home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
german
/
blt.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
938b
|
81 lines
move.l #bitplane1,a2
ok: move.l a2,a1
ok2: move.l #$40000,a0
move.w #8,d0
move.w #32,d1
jsr blit
move.w $dff00c,d0
btst #1,d0
bne rechts
btst #0,d0
bne runter
btst #9,d0
bne links
btst #8,d0
bne hoch
ok1: jsr wait
jmp ok
rechts:
jsr pause2
move.l #1,d6
jsr addieren
bra ok
hoch:
jsr pause
move.l #-40,d6
jsr addieren
bra ok
runter:
jsr pause
move.l #40,d6
jsr addieren
bra ok
links:
jsr pause2
move.l #-1,d6
jsr addieren
bra ok
addieren:
move.l a2,a1
move.l #$60000,a0
move.w #8,d0
move.w #32,d1
jsr blit
add.l d6,a2
rts
pause: move.l #1000,d0
p1: dbf d0,p1
rts
pause2: move.l #5000,d0
p2: dbf d0,p2
rts
blit:
jsr waitblt
move.l a1,bltdpth
move.l a0,bltapth
rol.w #6,d1
add.w d0,d1
mulu #2,d0
move.w #40,d3
sub.w d0,d3
move.w d3,bltamod
move.w d3,bltdmod
move.w #%0000100111110000,bltcon0
clr.w bltcon1
move.w d1,bltsize
rts
waitblt:
btst #14,$dff002
bne waitblt
rts