home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.tandy      Life is dandy cuz you're gettin a Tandy!      5,684 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,045 of 5,684   
   Knut Roll-Lund to dkelvey@hotmail.com   
   Re: 5 meg hard drive controller   
   21 Apr 06 21:54:42   
   
   From: kr-lund@nogarbage.online.no   
      
   dkelvey@hotmail.com wrote:   
   > Hi   
   >  I'm looking for a list of commands and ports for the TRS-80 5Meg   
   > disk controller. I'm trying to us it in an application that used   
   > a WD1000 compatable controller but the I/O mapping is not the   
   > same.   
   >  Can anyone give me a pointer to something on the web or a list   
   > of the I/O addresses and register names.   
   > Thanks   
   > Dwight   
   >   
   I just wondered a bit about that, the port number, because I just   
   disassembled and recreated the source for DOSPLUS' 3.50 model III   
   RIGID/DVR. It's base is 78H   
      
   BASE	EQU	078H		;HDC BASE ADDRESS   
   HD_D	EQU	BASE		;HDC DATA REGISTER   
   HD_E	EQU	BASE+1		;HDC ERROR REGISTER   
   HD_W	EQU	BASE+1		;HDC WRITE PRECOMP   
   HD_X	EQU	BASE+2		;HDC SECTOR COUNT   
   HD_S	EQU	BASE+3		;HDC SECTOR REGISTER   
   HD_L	EQU	BASE+4		;HDC CYLINDER LOW   
   HD_H	EQU	BASE+5		;HDC CYLINDER HIGH   
   HD_Q	EQU	BASE+6		;HDC SIZE/HEAD/DRIVE   
   HD_C	EQU	BASE+7		;HDC COMMAND/STATUS   
      
   	WD-1000 COMMANDS   
      
   HREST	EQU	00010000B	;RESTORE & INIT   
   HREAD	EQU	00100000B	;READ SECTOR   
   HWRTE	EQU	00110000B	;WRITE SECTOR   
   HFRMT	EQU	01010000B	;FORMAT TRACK   
   HSEEK	EQU	01110000B	;SEEK ADDRESS   
      
   For further information I recommend the DOSPLUS manual, the driver   
   example is at the end of the technical section.   
      
   In the example in the model I/III manual the base is 10H   
      
   Then there is also model 4 where the example in the manual provides the   
   base 50H.   
      
   But, I do have the RIGID/DVR for DOSPLUS IV too and a quick look agrees   
   with the model III RIGID/DVR base 78H.   
      
   In addition I have an unmarked interface card I'm convinced is the III/4   
   HD interface, it has 78H as the base address.   
      
   BTW:   
      
   Disassembling the driver provided two internal functions that were not   
   documented: REGSAV% and SDIVD% which for model III are 4488H and 4494H   
   respectively. Searching for similar code in model I DOSPLUS yielded   
   4525H and 4943H where they are direct calls rather than vectors (no   
   vectors provided).   
      
   model I   
   REGSAV%	EQU	4525H   
   SDIVD%	EQU	4943H   
      
   model III   
   REGSAV%	EQU	4485H   
   SDIVD%	EQU	4494H   
      
   Knut   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca