Mercurial > hg > Members > kono > nitros9-code
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 |
rev | line source |
---|---|
2269 | 1 ******************************************************************** |
2 * dwdefs - DriveWire Definitions File | |
3 * | |
4 * $Id$ | |
5 * | |
6 * Ed. Comments Who YY/MM/DD | |
7 * ------------------------------------------------------------------ | |
8 * 1 Started BGP 03/04/03 | |
9 * 2 Added DWGLOBS area BGP 09/12/27 | |
10 | |
11 nam dwdefs | |
12 ttl DriveWire Definitions File | |
13 | |
14 * Addresses | |
15 BBOUT equ $FF20 | |
16 BBIN equ $FF22 | |
17 | |
18 * Opcodes | |
19 OP_NOP equ $00 No-Op | |
20 OP_RESET1 equ $FE Server Reset | |
21 OP_RESET2 equ $FF Server Reset | |
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 | 24 OP_TIME equ '# Current time requested |
25 OP_INIT equ 'I Init routine called | |
26 OP_READ equ 'R Read one sector | |
27 OP_REREAD equ 'r Re-read one sector | |
28 OP_READEX equ 'R+128 Read one sector | |
29 OP_REREADEX equ 'r+128 Re-read one sector | |
30 OP_WRITE equ 'W Write one sector | |
31 OP_REWRIT equ 'w Re-write one sector | |
32 OP_GETSTA equ 'G GetStat routine called | |
33 OP_SETSTA equ 'S SetStat routine called | |
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 | 37 |
38 * Printer opcodes | |
39 OP_PRINT equ 'P Print byte to the print buffer | |
40 OP_PRINTFLUSH equ 'F Flush the server print buffer | |
41 | |
42 * Serial opcodes | |
43 OP_SERREAD equ 'C | |
44 OP_SERREADM equ 'c | |
45 OP_SERWRITE equ 'C+128 | |
46 OP_SERGETSTAT equ 'D | |
47 OP_SERSETSTAT equ 'D+128 | |
48 | |
2434 | 49 * for dw vfm |
50 OP_VFM equ 'V+128 | |
51 | |
2269 | 52 * WireBug opcodes (Server-initiated) |
53 OP_WIREBUG_MODE equ 'B | |
54 * WireBug opcodes (Server-initiated) | |
55 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers | |
56 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers | |
57 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory | |
58 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory | |
59 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution | |
60 | |
61 * VPort opcodes (CoCo-initiated) | |
62 OP_VPORT_READ equ 'V | |
63 OP_VPORT_WRITE equ 'v | |
64 | |
65 * Error definitions | |
66 E_CRC equ $F3 Same as NitrOS-9 E$CRC | |
67 | |
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 | 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 | 72 DW.VIRQPkt rmb Vi.PkSz |
2388 | 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 | 78 SSigID rmb 1 ;process ID for signal on data ready |
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 . |