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   
Text File  |  1992-01-19  |  720b  |  44 lines

  1.     nam SSDCM
  2.     ttl    Basic09 Subroutine to interface to SS_DCmd
  3.     use    /dd/defs/oskdefs.d
  4.  
  5. *************************************
  6. * Interface to SS_DCmd SetStat call
  7. * from GMX Micro-20 documentation
  8. * DIM path,cmdblk(5),datbuf(bufsiz):BYTE
  9. * RUN SSDCM(path,cmdblk,datbuf)
  10. *
  11. * on entry from Basic09, d0=parm count
  12. *                        d1=addr of 1st parm
  13. *
  14.  
  15.     org 4
  16.  
  17. PLen1    do.l    1
  18. PAdr2    do.l    1
  19. PLen2    do.l    1
  20. PAdr3    do.l    1
  21. PLen3    do.l    1
  22.  
  23.     psect    ssdcm,(Sbrtn<<8)!Objct,(ReEnt<<8)!1,0,0,Start
  24.  
  25. Start
  26.     cmpi.l    #3,d0
  27.     bne.s    ParamErr
  28.     move.l    d1,a0
  29.     move.b    (a0),d0
  30.     cmpi.l    #5,PLen2(a7)
  31.     bne.s    ParamErr
  32.     move.l    PAdr2(a7),a0
  33.     move.l    PAdr3(a7),a1
  34.     moveq    #SS_DCmd,d1
  35.     os9        I$SetStt
  36.     rts
  37.  
  38. ParamErr
  39.     move.w#E$BMode,d1
  40.     ori    #Carry,ccr
  41.     rts
  42.  
  43.