Mercurial > hg > Members > kono > nitros9-code
annotate defs/dwdefs.d @ 2314:5f76d1a611f6
term signal sending for serread port status responses
author | aaronwolfe |
---|---|
date | Sun, 03 Jan 2010 22:09:41 +0000 |
parents | d86248fcdea0 |
children | 6a5ada3e2666 |
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 | |
23 OP_TIME equ '# Current time requested | |
24 OP_INIT equ 'I Init routine called | |
25 OP_READ equ 'R Read one sector | |
26 OP_REREAD equ 'r Re-read one sector | |
27 OP_READEX equ 'R+128 Read one sector | |
28 OP_REREADEX equ 'r+128 Re-read one sector | |
29 OP_WRITE equ 'W Write one sector | |
30 OP_REWRIT equ 'w Re-write one sector | |
31 OP_GETSTA equ 'G GetStat routine called | |
32 OP_SETSTA equ 'S SetStat routine called | |
33 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
|
34 OP_SERINIT equ 'E |
07b2433f0c65
moved dwdefs.d to defs/, major changes to drivers due to new globals arrangement.
boisy
parents:
2269
diff
changeset
|
35 OP_SERTERM equ 'E+128 |
2269 | 36 |
37 * Printer opcodes | |
38 OP_PRINT equ 'P Print byte to the print buffer | |
39 OP_PRINTFLUSH equ 'F Flush the server print buffer | |
40 | |
41 * Serial opcodes | |
42 OP_SERREAD equ 'C | |
43 OP_SERREADM equ 'c | |
44 OP_SERWRITE equ 'C+128 | |
45 OP_SERGETSTAT equ 'D | |
46 OP_SERSETSTAT equ 'D+128 | |
47 | |
48 * WireBug opcodes (Server-initiated) | |
49 OP_WIREBUG_MODE equ 'B | |
50 * WireBug opcodes (Server-initiated) | |
51 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers | |
52 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers | |
53 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory | |
54 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory | |
55 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution | |
56 | |
57 * VPort opcodes (CoCo-initiated) | |
58 OP_VPORT_READ equ 'V | |
59 OP_VPORT_WRITE equ 'v | |
60 | |
61 * Error definitions | |
62 E_CRC equ $F3 Same as NitrOS-9 E$CRC | |
63 | |
64 * DW Globals Page Definitions (must be 256 bytes max) | |
65 org $00 | |
2306
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
66 DW.StatTbl rmb 15 page pointers for terminal device static storage |
2269 | 67 DW.VIRQPkt rmb 5 |
68 | |
2306
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
69 |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
70 * SCF Multi Terminal Driver Definitions |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
71 |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
72 org V.SCF ;V.SCF: free memory for driver to use |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
73 PortSigPID rmb 1 ;process ID for CD signal |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
74 PortSigSig rmb 1 ;CD signal code |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
75 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
|
76 RxBufSiz rmb 1 ;Rx buffer size |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
77 RxBufEnd rmb 2 ;end of Rx buffer |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
78 RxBufGet rmb 2 ;Rx buffer output pointer |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
79 RxBufPut rmb 2 ;Rx buffer input pointer |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
80 RxGrab rmb 1 ;bytes to grab in multiread |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
81 RxBufPtr rmb 2 ;pointer to Rx buffer |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
82 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
|
83 RxBuff rmb RxBufDSz ;default Rx buffer |
d86248fcdea0
Moved scdwt driver static storage definitions to dwdefs.d
boisy
parents:
2281
diff
changeset
|
84 SCFDrvMemSz equ . |