91
|
1 opt -l
|
|
2 *
|
|
3 * Hardware equates for Western Digital WX1 and WX2 controllers
|
|
4 *
|
|
5 * Revised 4/21/88
|
|
6 *
|
|
7
|
|
8 * Disk Controller Addresses
|
|
9 HDDATA equ $FF50 ;read or write data here
|
|
10 HDSTAT equ $FF51 ;read status here
|
|
11 HDCONF equ $FF52 ;read parallel input lines here
|
|
12
|
|
13 HDRSET equ $FF51 ;write here to reset controller
|
|
14 HDATTN equ $FF52 ;write here to get controller's attention
|
|
15 HDMASK equ $FF53 ;write here to control DMA and IRQ (both off)
|
|
16
|
|
17 * Command op-codes
|
|
18 WX$TST equ 0 ;Test drive ready
|
|
19 WX$TK0 equ 1 ;Recalibrate to track 0
|
|
20 WX$STS equ 3 ;Status of last operation
|
|
21 WX$FMT equ 4 ;Format drive
|
|
22 WX$VFY equ 5 ;Verify sectors
|
|
23 WX$FTK equ 6 ;Format track
|
|
24 WX$FBT equ 7 ;Format bad track
|
|
25 WX$RDD equ 8 ;Read sector(s)
|
|
26 WX$WRT equ $0A ;Write sector(s)
|
|
27 WX$SIK equ $0B ;Seek
|
|
28 WX$INI equ $0C ;Initialize drive parameters
|
|
29 WX$ECC equ $0D ;Read ECC burst length
|
|
30 WX$RBF equ $0E ;Read sector buffer
|
|
31 WX$WBF equ $0F ;Write sector buffer
|
|
32
|
|
33 WX$SBD equ $E0 ;Sector buffer diagnostic
|
|
34 WX$DRD equ $E3 ;Drive diagnostic
|
|
35 WX$CTD equ $E4 ;Controller diagnostic
|
|
36
|
|
37 WX$RDL equ $E5 ;Read long
|
|
38 WX$WRL equ $E6 ;Write long
|
|
39
|
|
40 * Bogus "special init" command
|
|
41
|
|
42 WX$XIN equ $FF ;Init w/ special parameters
|
|
43
|
|
44 * Error codes
|
|
45 WE$AOK equ $00 ;No error
|
|
46 WE$NSC equ $02 ;"Seek complete" not received
|
|
47 WE$WRF equ $03 ;Write fault
|
|
48 WE$NRD equ $04 ;Drive not ready
|
|
49 WE$NT0 equ $06 ;Track 0 not found
|
|
50 WE$DSS equ $08 ;Drive still seeking
|
|
51 WE$UER equ $11 ;Uncorrectable data error
|
|
52 WE$DAM equ $12 ;Data address mark not found
|
|
53 WE$SIK equ $15 ;Seek error
|
|
54 WE$CER equ $18 ;Correctable data error occured
|
|
55 WE$BTK equ $19 ;Track is flagged as bad
|
|
56 WE$CMD equ $20 ;Invalid command
|
|
57 WE$ISA equ $21 ;Illegal sector address
|
|
58 WE$SBF equ $30 ;Sector buffer diagnostic failed
|
|
59 WE$ROM equ $31 ;Controller ROM checksum error
|
|
60 WE$ECC equ $32 ;ECC polynomial hardware failure
|
|
61
|
|
62 opt l
|
|
63
|