Mercurial > hg > Members > kono > nitros9-code
annotate defs/drivewire.d @ 2662:07cc32e3d96f
More fixes
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Fri, 13 Jul 2012 23:11:00 -0500 |
parents | 928b4a062979 |
children | 9ffe2daeb011 |
rev | line source |
---|---|
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 | |
2649
928b4a062979
Atari: Made mods to the kernel to boot with new Liber809 firmware
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
21 OP_NAMEOBJ_MOUNT equ $01 Named Object Mount |
928b4a062979
Atari: Made mods to the kernel to boot with new Liber809 firmware
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
22 OP_NAMEOBJ_CREATE equ $02 Named Object Create |
2624 | 23 OP_NOP equ $00 No-Op |
24 OP_RESET1 equ $FE Server Reset | |
25 OP_RESET2 equ $FF Server Reset | |
26 OP_RESET3 equ $F8 Server Reset | |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
27 OP_DWINIT equ 'Z DriveWire dw3 init/OS9 boot |
2624 | 28 OP_TIME equ '# Current time requested |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
29 OP_SETTIME equ '$ Current time requested |
2624 | 30 OP_INIT equ 'I Init routine called |
31 OP_READ equ 'R Read one sector | |
32 OP_REREAD equ 'r Re-read one sector | |
33 OP_READEX equ 'R+128 Read one sector | |
34 OP_REREADEX equ 'r+128 Re-read one sector | |
35 OP_WRITE equ 'W Write one sector | |
36 OP_REWRIT equ 'w Re-write one sector | |
37 OP_GETSTA equ 'G GetStat routine called | |
38 OP_SETSTA equ 'S SetStat routine called | |
39 OP_TERM equ 'T Term routine called | |
40 OP_SERINIT equ 'E | |
41 OP_SERTERM equ 'E+128 | |
42 | |
43 * Printer opcodes | |
44 OP_PRINT equ 'P Print byte to the print buffer | |
45 OP_PRINTFLUSH equ 'F Flush the server print buffer | |
46 | |
47 * Serial opcodes | |
48 OP_SERREAD equ 'C | |
49 OP_SERREADM equ 'c | |
50 OP_SERWRITE equ 'C+128 | |
51 OP_SERGETSTAT equ 'D | |
52 OP_SERSETSTAT equ 'D+128 | |
53 | |
54 * for dw vfm | |
55 OP_VFM equ 'V+128 | |
56 | |
57 * WireBug opcodes (Server-initiated) | |
58 OP_WIREBUG_MODE equ 'B | |
59 * WireBug opcodes (Server-initiated) | |
60 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers | |
61 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers | |
62 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory | |
63 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory | |
64 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution | |
65 | |
66 * VPort opcodes (CoCo-initiated) | |
67 OP_VPORT_READ equ 'V | |
68 OP_VPORT_WRITE equ 'v | |
69 | |
70 * Error definitions | |
71 E_CRC equ $F3 Same as NitrOS-9 E$CRC | |
72 | |
73 * DW Globals Page Definitions (must be 256 bytes max) | |
2662 | 74 DW.StatCnt equ 15+16 |
2624 | 75 org $00 |
76 DW.StatTbl rmb DW.StatCnt page pointers for terminal device static storage | |
77 DW.VIRQPkt rmb Vi.PkSz | |
78 DW.VIRQNOP rmb 1 | |
79 | |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
80 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
81 ***************************************** |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
82 * dw3 subroutine module entry points |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
83 * |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
84 DW$Init equ 0 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
85 DW$Read equ 3 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
86 DW$Write equ 6 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
87 DW$Term equ 9 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
88 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
89 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
90 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
91 ***************************************** |
2624 | 92 * SCF Multi Terminal Driver Definitions |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
93 * |
2624 | 94 org V.SCF ;V.SCF: free memory for driver to use |
95 SSigID rmb 1 ;process ID for signal on data ready | |
96 SSigSg rmb 1 ;signal on data ready code | |
97 RxDatLen rmb 1 ;current length of data in Rx buffer | |
98 RxBufSiz rmb 1 ;Rx buffer size | |
99 RxBufEnd rmb 2 ;end of Rx buffer | |
100 RxBufGet rmb 2 ;Rx buffer output pointer | |
101 RxBufPut rmb 2 ;Rx buffer input pointer | |
102 RxGrab rmb 1 ;bytes to grab in multiread | |
103 RxBufPtr rmb 2 ;pointer to Rx buffer | |
104 RxBufDSz equ 256-. ;default Rx buffer gets remainder of page... | |
105 RxBuff rmb RxBufDSz ;default Rx buffer | |
106 SCFDrvMemSz equ . | |
107 | |
108 ENDC | |
109 |