home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
demoload.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
541b
|
44 lines
; laden der dos-library
execbase = 4
openlib = -408
open = -30
start:
move.l execbase,a6
lea dosname,a1
moveq #0,d0
jsr openlib(a6)
move.l d0,dosbase
beq error
move.l dosbase,a6
move.l #filename,d1
move #1005,d2
jsr -30(a6)
move.l d0,conhandle
beq error
move.l conhandle,d1
move.l #$40000,d2
move.l #$10000,d3
jsr -42(a6)
move.l d0,lange
beq error
;jsr $40000
rts
error:
moveq #8,d0
rts
dosname:
dc.b "dos.library",0,0
even
dosbase:
blk.l 1
conhandle:
dc.l $00000000
even
filename:
dc.b "demodata",0,0
even
lange:
dc.l $00000000