annotate level1/modules/dwdefs.d @ 2254:254f75634e96

Use IntMasks instead of $50
author boisy
date Sun, 27 Dec 2009 03:34:22 +0000
parents 8cbd8013fe24
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2180
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
1 ********************************************************************
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
2 * dwdefs - DriveWire Definitions File
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
3 *
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
4 * $Id$
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
5 *
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
8 * 1 Started BGP 03/04/03
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
9
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
10 nam dwdefs
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
11 ttl DriveWire Definitions File
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
12
2231
27f07aa0bca0 Updated modules to use Darren Atkinson's latest changes to low level read/write routines
boisy
parents: 2183
diff changeset
13 * Addresses
27f07aa0bca0 Updated modules to use Darren Atkinson's latest changes to low level read/write routines
boisy
parents: 2183
diff changeset
14 BBOUT equ $FF20
27f07aa0bca0 Updated modules to use Darren Atkinson's latest changes to low level read/write routines
boisy
parents: 2183
diff changeset
15 BBIN equ $FF22
27f07aa0bca0 Updated modules to use Darren Atkinson's latest changes to low level read/write routines
boisy
parents: 2183
diff changeset
16
2180
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
17 * Opcodes
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
18 OP_NOP equ $00 No-Op
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
19 OP_RESET1 equ $FE Server Reset
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
20 OP_RESET2 equ $FF Server Reset
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
21 OP_TIME equ '# Current time requested
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
22 OP_INIT equ 'I Init routine called
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
23 OP_READ equ 'R Read one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
24 OP_REREAD equ 'r Re-read one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
25 OP_READEX equ 'R+128 Read one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
26 OP_REREADEX equ 'r+128 Re-read one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
27 OP_WRITE equ 'W Write one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
28 OP_REWRIT equ 'w Re-write one sector
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
29 OP_GETSTA equ 'G GetStat routine called
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
30 OP_SETSTA equ 'S SetStat routine called
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
31 OP_TERM equ 'T Term routine called
2183
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
32
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
33 * Printer opcodes
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
34 OP_PRINT equ 'P Print byte to the print buffer
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
35 OP_PRINTFLUSH equ 'F Flush the server print buffer
2180
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
36
2242
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
37 * Serial opcodes
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
38 OP_SERREAD equ 'C
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
39 OP_SERREADM equ 'c
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
40 OP_SERWRITE equ 'C+128
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
41 OP_SERGETSTAT equ 'D
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
42 OP_SERSETSTAT equ 'D+128
2a889a511f0a Adding Aaron Wolfe's DriveWire work
boisy
parents: 2231
diff changeset
43
2180
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
44 * WireBug opcodes (Server-initiated)
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
45 OP_WIREBUG_MODE equ 'B
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
46 * WireBug opcodes (Server-initiated)
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
47 OP_WIREBUG_READREGS equ 'R Read the CoCo's registers
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
48 OP_WIREBUG_WRITEREGS equ 'r Write the CoCo's registers
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
49 OP_WIREBUG_READMEM equ 'M Read the CoCo's memory
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
50 OP_WIREBUG_WRITEMEM equ 'm Write the CoCo's memory
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
51 OP_WIREBUG_GO equ 'G Tell CoCo to get out of WireBug mode and continue execution
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
52
2249
8cbd8013fe24 rel: now we clear $00-$1F (direct page) in Level 2
boisy
parents: 2242
diff changeset
53 * VPort opcodes (CoCo-initiated)
8cbd8013fe24 rel: now we clear $00-$1F (direct page) in Level 2
boisy
parents: 2242
diff changeset
54 OP_VPORT_READ equ 'V
8cbd8013fe24 rel: now we clear $00-$1F (direct page) in Level 2
boisy
parents: 2242
diff changeset
55 OP_VPORT_WRITE equ 'v
8cbd8013fe24 rel: now we clear $00-$1F (direct page) in Level 2
boisy
parents: 2242
diff changeset
56
2180
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
57 * Error definitions
660cc987e18d Added DriveWire 3 modules to distribution
boisy
parents:
diff changeset
58 E_CRC equ $F3 Same as NitrOS-9 E$CRC