home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
fct2.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
643b
|
52 lines
execbase=4
openlib=-414
open=-30
close=-36
read=-42
int:
move.l execbase,a6
lea dosname,a1
moveq #0,d0
jsr openlib(a6)
move.l d0,dosbase
bsr error
start:
move.l #consolname,d1
move.l #1005,d2
move.l dosbase,a6
jsr open(a6)
tst.l d0
beq error
move.l d0,conhandle
move #80,d3
bsr readchr
lea inline,a0
clr.b 0(a0,d0)
bsr pmsg
move.l conhandle,d1
move.l dosbase,a6
jsr close(a6)
readchr:
move.l #inline,d2
move.l dosbase,a6
move.l conhandle,d1
jsr read(a6)
rts
error:
move.l #-1,d7
pmsg:
move.l d2,a0
dosname: dc.b "dos.library",0,0
consolname: dc.b "CON:0/100/640/100/**Hei**",0
even
dosbase: dc.b
conhandle: dc.b
even
inline: blk.b 80,0