home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
fct1.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
597b
|
45 lines
execbase=4
openlib=-408
closelib=-414
write=-48
open=-30
int:
move execbase,a6
lea dosname,a1
moveq #0,d0
jsr openlib(a6)
move.l d0,dosbase
beq error
start:
move.l #consolname,d1
move.l #1005,d2
bsr do_open
beq error
move.l d0,conhandle
move.l dosbase,a6
move.l conhandle,d1
move.l #titel,d2
move.l #titelende-titel,d3
jsr write(a6)
do_open:
move.l dosbase,a6
jsr open(a6)
tst.l d0
rts
error:
move.l #-1,d7
dosname: dc.b "dos.library",0,0
consolname: dc.b "CON:0/10/640/200/**fct**",0
even
dosbase:blk.l 1
conhandle: dc.b 0
even
titel: dc.b "**Velkommen til dette program**"
titelende:
even