home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
reset_rout.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
451b
|
37 lines
run:
allocmem=-198
require=1
coldcapture=42
move.l $4,a6
move.l #end-start,d0
move.l #require,d1
jsr allocmem(a6)
tst.l d0
beq fejl
move.l d0,a1
move.l a1,coldcapture(a6)
move.w #end-start,d0
lea.l start,a0
l1:
move.b (a0)+,(a1)+
dbf d0,l1
clr.l d1
lea.l 34(a6),a0
move.w #$16,d0
l2:
add.w (a0)+,d1
dbf d0,l2
not.w d1
move.w d1,82(a6)
fejl:
rts
; reset_jmp start
start:
lea.l start(pc),a0
move.l $4,a6
move.l a0,coldcapture(a6)
l3:
jmp l3(pc)
end: