[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Disk Server Beta. Need testers.



On 6 jan, 20:04, dog_...@macgui.com (D Finnigan) wrote:
>
> There were some discussions awhile back about tuning this parameter of wait
> time. Some of the custom versions of DOS managed to slice it pretty short.
> ProDOS was notably shorter than DOS 3.3.
>
> --
> ]DF$
> Mac GUI Vault - A source for retro Apple II and
> Macintosh computing.http://macgui.com/vault/

The ProDOS mode:
=============================
*****************************************
*
* subr to tell if motor is stopped
*
* if motor is stopped, controller's
* shift reg will not be changing.
*
* return y=0 and zero flag set if it is stopped.
*
*****************************************

CHKDRV		LDX SLOTZ
CHKDRV0		LDY #0	;init loop counter
CHKDRV1		LDA Q6L,X	;read the shift reg
			JSR CKDRTS	;delay
			PHA
			PLA		;MORE delay
			CMP Q6L,X 	;has shift reg changed?
			BNE CKDRTS	;yes, motor is moving
			LDA #IBNODRV	;anticipate error.
			DEY		;NO,DEC retry counter
			BNE CHKDRV1	;and try 256 times
CKDRTS		RTS		;THEN return


The DOS 3.3 mode:
=============================
* * NOW CHECK IF THE MOTOR IS ON, THEN START IT *
SAMESLOT	LDA	Q7L,X
			LDA	Q6L,X
			LDY	#8
*
			LDA	Q6L,X
			PHA
			PLA
			PHA
			PLA
			STX	SLOT
			CMP	Q6L,X
			BNE	ITISON
			DEY
			BNE	CHKIFON


It is now your turn to count the cycles ;-)

Antoine