home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
tox_move.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
531b
|
42 lines
s:
move.b #$80,lab1+3
lea tabel,a0
s1:
andi.b #64,$bfe001
beq s5
lab1:
cmp.b #$80,$dff006
bne s1
s2:
move.l farve,$dff180
add.b #1,lab1+3
move.w (a0)+,farve
cmp.l #endtab,a0
bne s1
cmp.b #$01,tjek
beq op
add.b #1,s+3
cmp.b #$a0,s+3
bne s
move.b #$00,tjekk
bra s
op:
sub.b #1,s+3
cmp.b #$80,s+3
bne s
move.b #$01,tjekk
bra s
even
tabel:
dc.w $000,$111,$222,$333,$444,$555,$666,$777,$888,$999,$aaa,$bbb
dc.w $aaa,$999,$888,$777,$666,$555,$444,$333,$222,$111,$000,$000
endtab:
even
farve:
dc.w $0
even
tjekk:
dc.b $00
even
s5: rts