annotate defs/dwdefs.d @ 2512:3dcda506604b

added pretty indexer to dskcopy process
author aaronwolfe
date Tue, 06 Apr 2010 01:20:16 +0000
parents eab6b9e18832
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2269
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
1 ********************************************************************
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
2 * dwdefs - DriveWire Definitions File
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
3 *
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
4 * $Id$
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
5 *
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
8 * 1 Started BGP 03/04/03
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
9 * 2 Added DWGLOBS area BGP 09/12/27
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
10
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
11 nam dwdefs
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
12 ttl DriveWire Definitions File
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
13
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
14 * Addresses
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
15 BBOUT equ $FF20
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
16 BBIN equ $FF22
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
17
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
18 * Opcodes
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
19 OP_NOP equ $00 No-Op
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
20 OP_RESET1 equ $FE Server Reset
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
21 OP_RESET2 equ $FF Server Reset
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
22 OP_RESET3 equ $F8 Server Reset
2321
6a5ada3e2666 added DWINIT op code, dw3 now sends on init just before installing VIRQ
aaronwolfe
parents: 2306
diff changeset
23 OP_DWINIT equ 'Z DriveWire dw3 init/OS9 boot
2269
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
24 OP_TIME equ '# Current time requested
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
25 OP_INIT equ 'I Init routine called
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
26 OP_READ equ 'R Read one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
27 OP_REREAD equ 'r Re-read one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
28 OP_READEX equ 'R+128 Read one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
29 OP_REREADEX equ 'r+128 Re-read one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
30 OP_WRITE equ 'W Write one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
31 OP_REWRIT equ 'w Re-write one sector
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
32 OP_GETSTA equ 'G GetStat routine called
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
33 OP_SETSTA equ 'S SetStat routine called
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
34 OP_TERM equ 'T Term routine called
2270
07b2433f0c65 moved dwdefs.d to defs/, major changes to drivers due to new globals arrangement.
boisy
parents: 2269
diff changeset
35 OP_SERINIT equ 'E
07b2433f0c65 moved dwdefs.d to defs/, major changes to drivers due to new globals arrangement.
boisy
parents: 2269
diff changeset
36 OP_SERTERM equ 'E+128
2269
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
37
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
38 * Printer opcodes
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
39 OP_PRINT equ 'P Print byte to the print buffer
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
40 OP_PRINTFLUSH equ 'F Flush the server print buffer
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
41
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
42 * Serial opcodes
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
43 OP_SERREAD equ 'C
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
44 OP_SERREADM equ 'c
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
45 OP_SERWRITE equ 'C+128
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
46 OP_SERGETSTAT equ 'D
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
47 OP_SERSETSTAT equ 'D+128
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
48
2434
eab6b9e18832 update defs for RFM
aaronwolfe
parents: 2421
diff changeset
49 * for dw vfm
eab6b9e18832 update defs for RFM
aaronwolfe
parents: 2421
diff changeset
50 OP_VFM equ 'V+128
eab6b9e18832 update defs for RFM
aaronwolfe
parents: 2421
diff changeset
51
2269
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
52 * WireBug opcodes (Server-initiated)
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
53 OP_WIREBUG_MODE equ 'B
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
54 * WireBug opcodes (Server-initiated)
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
55 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
56 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
57 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
58 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
59 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
60
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
61 * VPort opcodes (CoCo-initiated)
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
62 OP_VPORT_READ equ 'V
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
63 OP_VPORT_WRITE equ 'v
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
64
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
65 * Error definitions
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
66 E_CRC equ $F3 Same as NitrOS-9 E$CRC
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
67
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
68 * DW Globals Page Definitions (must be 256 bytes max)
2339
f9ff11331a2f Changes made to scdwn now send 2 bytes at INIT... server should get mode
boisy
parents: 2338
diff changeset
69 DW.StatCnt equ 15
2269
659876305d1d Moved from level1/modules
boisy
parents:
diff changeset
70 org $00
2339
f9ff11331a2f Changes made to scdwn now send 2 bytes at INIT... server should get mode
boisy
parents: 2338
diff changeset
71 DW.StatTbl rmb DW.StatCnt page pointers for terminal device static storage
2421
8873faeef1ad Added Vi.PkSz for convenience
boisy
parents: 2388
diff changeset
72 DW.VIRQPkt rmb Vi.PkSz
2388
68ca4eccbbda new defs for ISR polling frequency
aaronwolfe
parents: 2339
diff changeset
73 DW.VIRQNOP rmb 1
2306
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
74
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
75 * SCF Multi Terminal Driver Definitions
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
76
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
77 org V.SCF ;V.SCF: free memory for driver to use
2338
a640af6b4582 More updates
boisy
parents: 2321
diff changeset
78 SSigID rmb 1 ;process ID for signal on data ready
a640af6b4582 More updates
boisy
parents: 2321
diff changeset
79 SSigSg rmb 1 ;signal on data ready code
2306
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
80 RxDatLen rmb 1 ;current length of data in Rx buffer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
81 RxBufSiz rmb 1 ;Rx buffer size
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
82 RxBufEnd rmb 2 ;end of Rx buffer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
83 RxBufGet rmb 2 ;Rx buffer output pointer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
84 RxBufPut rmb 2 ;Rx buffer input pointer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
85 RxGrab rmb 1 ;bytes to grab in multiread
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
86 RxBufPtr rmb 2 ;pointer to Rx buffer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
87 RxBufDSz equ 256-. ;default Rx buffer gets remainder of page...
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
88 RxBuff rmb RxBufDSz ;default Rx buffer
d86248fcdea0 Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents: 2281
diff changeset
89 SCFDrvMemSz equ .