2624
|
1 IFNE DRIVEWIRE.D-1
|
|
2 DRIVEWIRE.D SET 1
|
|
3 ********************************************************************
|
|
4 * drivewire.d - DriveWire Definitions File
|
|
5 *
|
|
6 * $Id$
|
|
7 *
|
|
8 * Ed. Comments Who YY/MM/DD
|
|
9 * ------------------------------------------------------------------
|
|
10 * 1 Started BGP 03/04/03
|
|
11 * 2 Added DWGLOBS area BGP 09/12/27
|
|
12
|
|
13 nam drivewire.d
|
|
14 ttl DriveWire Definitions File
|
|
15
|
|
16 * Addresses
|
|
17 BBOUT equ $FF20
|
|
18 BBIN equ $FF22
|
|
19
|
|
20 * Opcodes
|
|
21 OP_NOP equ $00 No-Op
|
|
22 OP_RESET1 equ $FE Server Reset
|
|
23 OP_RESET2 equ $FF Server Reset
|
|
24 OP_RESET3 equ $F8 Server Reset
|
|
25 OP_DWINIT equ 'Z DriveWire dw3 init/OS9 boot
|
|
26 OP_TIME equ '# Current time requested
|
|
27 OP_INIT equ 'I Init routine called
|
|
28 OP_READ equ 'R Read one sector
|
|
29 OP_REREAD equ 'r Re-read one sector
|
|
30 OP_READEX equ 'R+128 Read one sector
|
|
31 OP_REREADEX equ 'r+128 Re-read one sector
|
|
32 OP_WRITE equ 'W Write one sector
|
|
33 OP_REWRIT equ 'w Re-write one sector
|
|
34 OP_GETSTA equ 'G GetStat routine called
|
|
35 OP_SETSTA equ 'S SetStat routine called
|
|
36 OP_TERM equ 'T Term routine called
|
|
37 OP_SERINIT equ 'E
|
|
38 OP_SERTERM equ 'E+128
|
|
39
|
|
40 * Printer opcodes
|
|
41 OP_PRINT equ 'P Print byte to the print buffer
|
|
42 OP_PRINTFLUSH equ 'F Flush the server print buffer
|
|
43
|
|
44 * Serial opcodes
|
|
45 OP_SERREAD equ 'C
|
|
46 OP_SERREADM equ 'c
|
|
47 OP_SERWRITE equ 'C+128
|
|
48 OP_SERGETSTAT equ 'D
|
|
49 OP_SERSETSTAT equ 'D+128
|
|
50
|
|
51 * for dw vfm
|
|
52 OP_VFM equ 'V+128
|
|
53
|
|
54 * WireBug opcodes (Server-initiated)
|
|
55 OP_WIREBUG_MODE equ 'B
|
|
56 * WireBug opcodes (Server-initiated)
|
|
57 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers
|
|
58 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers
|
|
59 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory
|
|
60 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory
|
|
61 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution
|
|
62
|
|
63 * VPort opcodes (CoCo-initiated)
|
|
64 OP_VPORT_READ equ 'V
|
|
65 OP_VPORT_WRITE equ 'v
|
|
66
|
|
67 * Error definitions
|
|
68 E_CRC equ $F3 Same as NitrOS-9 E$CRC
|
|
69
|
|
70 * DW Globals Page Definitions (must be 256 bytes max)
|
|
71 DW.StatCnt equ 15
|
|
72 org $00
|
|
73 DW.StatTbl rmb DW.StatCnt page pointers for terminal device static storage
|
|
74 DW.VIRQPkt rmb Vi.PkSz
|
|
75 DW.VIRQNOP rmb 1
|
|
76
|
|
77 * SCF Multi Terminal Driver Definitions
|
|
78
|
|
79 org V.SCF ;V.SCF: free memory for driver to use
|
|
80 SSigID rmb 1 ;process ID for signal on data ready
|
|
81 SSigSg rmb 1 ;signal on data ready code
|
|
82 RxDatLen rmb 1 ;current length of data in Rx buffer
|
|
83 RxBufSiz rmb 1 ;Rx buffer size
|
|
84 RxBufEnd rmb 2 ;end of Rx buffer
|
|
85 RxBufGet rmb 2 ;Rx buffer output pointer
|
|
86 RxBufPut rmb 2 ;Rx buffer input pointer
|
|
87 RxGrab rmb 1 ;bytes to grab in multiread
|
|
88 RxBufPtr rmb 2 ;pointer to Rx buffer
|
|
89 RxBufDSz equ 256-. ;default Rx buffer gets remainder of page...
|
|
90 RxBuff rmb RxBufDSz ;default Rx buffer
|
|
91 SCFDrvMemSz equ .
|
|
92
|
|
93 ENDC
|
|
94
|