[net.micro.mac] Info on RAM Serial drivers

jww@bonnie.UUCP (Joel West) (03/25/85)

The original query regarding RAM serial drivers has since been
purged here.  However, I refer its author (and anyone else) to
page 24 of the 2/15/85 document "About the Software Supplement."
The MacStuff 3 disk in this supplement includes standard RAM
serial drivers for the Mac and Lisa (or XL, if you prefer).

According to the docs, the serial driver should be Resource edited
over along with linking SDOpen.Rel.  Open the driver as

	SPORTA	equ	$0000		; use modem port
	SPORTB  equ	$0100		; use printer port

		XREF	RAMSDOpen
		CLR.W	-(SP)
		MOVE.W	SPORTB,-(SP)
		JSR	RAMSDOpen
		MOVE.W	(SP)+,R0	; get function result

close it with

		XREF	RAMSDClose
		MOVE.W	SPORTB,-(SP)
		JSR	RAMSDClose

The RAMSDOpen knows which SERD to load from the SERD file,
depending on whether it's a Mac or MAC XL.

Error codes from OPEN include;
	-97 port in use
	-98 port configured for other use (parameter RAM: see OS Utilities)
	-192 resource not found
	-108 out of memory
-- 
	Joel West				     (619) 457-9681
	CACI, Inc. - Federal 3344 N. Torrey Pines Ct La Jolla 92037
	jww@bonnie.UUCP (ihnp4!bonnie!jww)
	westjw@nosc.ARPA

   "The best is the enemy of the good" - A. Mullarney