home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
MISC
/
RSDir.lzh
/
SSDCM.A
< prev
Wrap
Text File
|
1992-01-19
|
720b
|
44 lines
nam SSDCM
ttl Basic09 Subroutine to interface to SS_DCmd
use /dd/defs/oskdefs.d
*************************************
* Interface to SS_DCmd SetStat call
* from GMX Micro-20 documentation
*
* DIM path,cmdblk(5),datbuf(bufsiz):BYTE
* RUN SSDCM(path,cmdblk,datbuf)
*
* on entry from Basic09, d0=parm count
* d1=addr of 1st parm
*
org 4
PLen1 do.l 1
PAdr2 do.l 1
PLen2 do.l 1
PAdr3 do.l 1
PLen3 do.l 1
psect ssdcm,(Sbrtn<<8)!Objct,(ReEnt<<8)!1,0,0,Start
Start
cmpi.l #3,d0
bne.s ParamErr
move.l d1,a0
move.b (a0),d0
cmpi.l #5,PLen2(a7)
bne.s ParamErr
move.l PAdr2(a7),a0
move.l PAdr3(a7),a1
moveq #SS_DCmd,d1
os9 I$SetStt
rts
ParamErr
move.w#E$BMode,d1
ori #Carry,ccr
rts