changeset 2338:a640af6b4582

More updates
author boisy
date Wed, 13 Jan 2010 16:13:32 +0000
parents 75e4303de24c
children f9ff11331a2f
files defs/dwdefs.d level1/modules/scdwn.asm
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/defs/dwdefs.d	Wed Jan 13 15:48:52 2010 +0000
+++ b/defs/dwdefs.d	Wed Jan 13 16:13:32 2010 +0000
@@ -71,8 +71,8 @@
 * SCF Multi Terminal Driver Definitions
 
          	org   	        V.SCF      	;V.SCF: free memory for driver to use
-PortSigPID      rmb             1              ;process ID for CD signal
-PortSigSig      rmb             1              ;CD signal code
+SSigID          rmb             1              ;process ID for signal on data ready
+SSigSg          rmb             1              ;signal on data ready code
 RxDatLen	rmb		1              ;current length of data in Rx buffer
 RxBufSiz	rmb		1              ;Rx buffer size
 RxBufEnd	rmb		2              ;end of Rx buffer
--- a/level1/modules/scdwn.asm	Wed Jan 13 15:48:52 2010 +0000
+++ b/level1/modules/scdwn.asm	Wed Jan 13 16:13:32 2010 +0000
@@ -436,6 +436,8 @@
 SetStat  
 		ldb       #OP_SERSETSTAT
 		bsr       SendStat
+		cmpa      #SS.Open
+                beq       open
 		cmpa      #SS.ComSt
                 beq       comst
                 cmpa      #SS.SSig
@@ -471,6 +473,14 @@
           clrb
           rts
 
+open            tst     <V.PORT,u     check if this is 0 (wildcard)
+                bne     openex
+* wildcard /N device... search for free device
+openex          rts
+
+* Search for a free device
+getnextdev      
+
           IFEQ      1
 SetPortSig    
           cmpa      #SS.PortSig