annotate defs/cocosdc.d @ 3168:fdc657942606

Expand help messages after inspection of source code
author Neal Crook <foofoobedoo@gmail.com>
date Mon, 17 Apr 2017 21:29:07 +0100
parents 3afecdae6f53
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2818
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
1 ********************************************************************
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
2 * cocosdc.d - CoCo SDC definitions
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
3 *
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
4 * $Id$
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
5 *
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
7 * Comment
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
8 * ------------------------------------------------------------------
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
9 * 2014/05/02 Boisy G. Pitre
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
10 * Created
3032
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
11 * 2014/12/22 Darren Atkinson
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
12 * Additional hardware symbols
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
13
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
14 IFNE COCOSDC.D-1
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
15 COCOSDC.D SET 1
2818
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
16
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
17
3032
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
18 * Main Port Address (V.PORT)
2818
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
19 SDAddr SET $FF4A
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
20
3032
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
21 * Hardware Addressing - CoCo Scheme
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
22 CTRLATCH equ $FF40 controller latch (write)
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
23 CMDREG equ $FF48 command register (write)
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
24 STATREG equ $FF48 status register (read)
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
25 PREG1 equ $FF49 param register 1
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
26 PREG2 equ $FF4A param register 2
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
27 PREG3 equ $FF4B param register 3
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
28 DATREGA equ PREG2 first data register
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
29 DATREGB equ PREG3 second data register
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
30 FLSHDAT equ $FF42 flash data register
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
31
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
32 * Status Register Masks
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
33 BUSY equ %00000001 set while a command is executing
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
34 READY equ %00000010 set when ready for a data transfer
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
35 FAILED equ %10000000 set on command failure
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
36
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
37 * Command and Mode Values
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
38 CMDMODE equ $43 control latch value to enable command mode
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
39 CMDREAD equ $80 read logical sector
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
40 CMDWRITE equ $A0 write logical sector
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
41 CMDEX equ $C0 extended command
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
42 CMDEXD equ $E0 extended command with data block
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
43
3afecdae6f53 Low level CoCo SDC driver updtate from Darren Atkinson
tlindner
parents: 2818
diff changeset
44
2818
05426dd4e24e ll_init now puts CoCo SDC in enhanced mode.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
45 ENDC