Mercurial > hg > Members > kono > nitros9-code
annotate defs/drivewire.d @ 2908:10e5cbc15f66
d64/makefile: Remove undefined use of STARTUP variable
ROOTFILES is used instead.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 11 Jan 2014 20:56:53 +0100 |
parents | 9ffe2daeb011 |
children |
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 | |
2801
9ffe2daeb011
Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2662
diff
changeset
|
54 SS.Timer equ $81 |
9ffe2daeb011
Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2662
diff
changeset
|
55 SS.EE equ $82 |
9ffe2daeb011
Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2662
diff
changeset
|
56 |
2624 | 57 * for dw vfm |
58 OP_VFM equ 'V+128 | |
59 | |
60 * WireBug opcodes (Server-initiated) | |
61 OP_WIREBUG_MODE equ 'B | |
62 * WireBug opcodes (Server-initiated) | |
63 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers | |
64 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers | |
65 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory | |
66 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory | |
67 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution | |
68 | |
69 * VPort opcodes (CoCo-initiated) | |
70 OP_VPORT_READ equ 'V | |
71 OP_VPORT_WRITE equ 'v | |
72 | |
73 * Error definitions | |
74 E_CRC equ $F3 Same as NitrOS-9 E$CRC | |
75 | |
76 * DW Globals Page Definitions (must be 256 bytes max) | |
2662 | 77 DW.StatCnt equ 15+16 |
2624 | 78 org $00 |
79 DW.StatTbl rmb DW.StatCnt page pointers for terminal device static storage | |
80 DW.VIRQPkt rmb Vi.PkSz | |
81 DW.VIRQNOP rmb 1 | |
82 | |
2634
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 ***************************************** |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
85 * dw3 subroutine module entry points |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
86 * |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
87 DW$Init equ 0 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
88 DW$Read equ 3 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
89 DW$Write equ 6 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
90 DW$Term equ 9 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
91 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
92 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
93 |
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
94 ***************************************** |
2624 | 95 * SCF Multi Terminal Driver Definitions |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
96 * |
2624 | 97 org V.SCF ;V.SCF: free memory for driver to use |
98 SSigID rmb 1 ;process ID for signal on data ready | |
99 SSigSg rmb 1 ;signal on data ready code | |
100 RxDatLen rmb 1 ;current length of data in Rx buffer | |
101 RxBufSiz rmb 1 ;Rx buffer size | |
102 RxBufEnd rmb 2 ;end of Rx buffer | |
103 RxBufGet rmb 2 ;Rx buffer output pointer | |
104 RxBufPut rmb 2 ;Rx buffer input pointer | |
105 RxGrab rmb 1 ;bytes to grab in multiread | |
106 RxBufPtr rmb 2 ;pointer to Rx buffer | |
107 RxBufDSz equ 256-. ;default Rx buffer gets remainder of page... | |
108 RxBuff rmb RxBufDSz ;default Rx buffer | |
109 SCFDrvMemSz equ . | |
110 | |
111 ENDC | |
112 |