mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-25 17:34:06 +00:00
Upload
Digital Research
This commit is contained in:
161
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v102a/bdos/ccpdef.lst
Normal file
161
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v102a/bdos/ccpdef.lst
Normal file
@@ -0,0 +1,161 @@
|
||||
1File: CCPDEF.H Page 1
|
||||
1 /*--------------------------------------------------------------*\
|
||||
2 | ccp_def.c DEFINES v1.0 |
|
||||
3 | ======= |
|
||||
4 | |
|
||||
5 | CP/M 68k: A CP/M derived operating system |
|
||||
6 | |
|
||||
7 | File contents: |
|
||||
8 | ------------- |
|
||||
9 | This file contains all of the #defines |
|
||||
10 | used by the console command processor. |
|
||||
11 | |
|
||||
12 | created by : Tom Saulpaugh Date: 7/13/82 |
|
||||
13 | ---------- |
|
||||
14 | last modified: 10/29/82 |
|
||||
15 | ------------- |
|
||||
16 | |
|
||||
17 | (c) COPYRIGHT Digital Research 1982 |
|
||||
18 | all rights reserved |
|
||||
19 | |
|
||||
20 \*--------------------------------------------------------------*/
|
||||
21
|
||||
22
|
||||
23 /*-------------------------------------------*\
|
||||
24 | CP/M Transient Commands |
|
||||
25 \*-------------------------------------------*/
|
||||
26
|
||||
27 #define DIRCMD 0
|
||||
28 #define TYPECMD 1
|
||||
29 #define RENCMD 2
|
||||
30 #define ERACMD 3
|
||||
31 #define UCMD 4
|
||||
32 #define CH_DISK 5
|
||||
33 #define SUBCMD 6
|
||||
34 #define SUB_FILE 7
|
||||
35 #define FILE 8
|
||||
36 #define DIRSCMD 9
|
||||
37 #define SEARCH 10
|
||||
38
|
||||
39 /*-------------------------------------------*\
|
||||
40 | Modes and Flags |
|
||||
41 \*-------------------------------------------*/
|
||||
42
|
||||
43 #define ON 1
|
||||
44 #define OFF 0
|
||||
45 #define MATCH 0
|
||||
46 #define GOOD 1
|
||||
47 #define BAD 0
|
||||
48 #define FILL 1
|
||||
49 #define NOFILL 0
|
||||
50 #define VOID /*no return value*/
|
||||
51 #define NO_FILE 98
|
||||
52 #define STOP 99
|
||||
53 #define USER_ZERO 0
|
||||
54 #define DISK_A 1
|
||||
55 #define SOURCEDRIVE 88
|
||||
56 #define DESTDRIVE 99
|
||||
57 #define BYTE char
|
||||
58 #define REG register
|
||||
59 #define WORD signed short
|
||||
1File: CCPDEF.H Page 2
|
||||
60 #define UWORD unsigned int
|
||||
61 #define LONG signed long
|
||||
62 #define ULONG unsigned long
|
||||
63 #define GET_MEM_REG 18
|
||||
64 #define ZERO 0
|
||||
65 #define NULL '\0'
|
||||
66 #define TRUE 1
|
||||
67 #define FALSE 0
|
||||
68 #define NO_READ 255
|
||||
69 #define BLANK ' '
|
||||
70 #define BACKSLH '\\'
|
||||
71 #define EXLIMPT '!'
|
||||
72 #define CMASK 0177
|
||||
73 #define ONE (long)49
|
||||
74 #define TAB 9
|
||||
75 #define Cr 13
|
||||
76 #define Lf 10
|
||||
77 #define CR (long)13
|
||||
78 #define LF (long)10
|
||||
79 #define EOF 26
|
||||
80 #define BLANKS (long)32
|
||||
81 #define PERIOD (long)46
|
||||
82 #define COLON (long)58
|
||||
83 #define ARROW (long)62
|
||||
84
|
||||
85 /*-------------------------------------------*\
|
||||
86 | Data Structure Size Constants |
|
||||
87 \*-------------------------------------------*/
|
||||
88
|
||||
89 #define CMD_LEN 128
|
||||
90 #define BIG_CMD_LEN 255
|
||||
91 #define MAX_ARGS 4
|
||||
92 #define ARG_LEN 26
|
||||
93 #define NO_OF_DRIVES 16
|
||||
94 #define NUMDELS 16
|
||||
95 #define FCB_LEN 36
|
||||
96 #define DMA_LEN 128
|
||||
97 #define FILES_PER_LINE 5
|
||||
98 #define SCR_HEIGHT 23
|
||||
99 #define BIG_WIDTH 80
|
||||
100 #define SMALL_WIDTH 40
|
||||
101
|
||||
102 /*-------------------------------------------*\
|
||||
103 | BDOS Function Calls |
|
||||
104 \*-------------------------------------------*/
|
||||
105
|
||||
106 #define WARMBOOT 0
|
||||
107 #define CONIN 1
|
||||
108 #define CONSOLE_OUTPUT 2
|
||||
109 #define READER_INPUT 3
|
||||
110 #define PUNCH_OUTPUT 4
|
||||
111 #define LIST_OUTPUT 5
|
||||
112 #define DIR_CONS_I/O 6
|
||||
113 #define GET_I/O_BYTE 7
|
||||
114 #define SET_I/O_BYTE 8
|
||||
115 #define PRINT_STRING 9
|
||||
116 #define READ_CONS_BUF 10
|
||||
117 #define GET_CONS_STAT 11
|
||||
118 #define RET_VERSION_NO 12
|
||||
1File: CCPDEF.H Page 3
|
||||
119 #define RESET_DISK_SYS 13
|
||||
120 #define SELECT_DISK 14
|
||||
121 #define OPEN_FILE 15
|
||||
122 #define CLOSE_FILE 16
|
||||
123 #define SEARCH_FIRST 17
|
||||
124 #define SEARCH_NEXT 18
|
||||
125 #define DELETE_FILE 19
|
||||
126 #define READ_SEQ 20
|
||||
127 #define WRITE_SEQ 21
|
||||
128 #define MAKE_FILE 22
|
||||
129 #define RENAME_FILE 23
|
||||
130 #define RET_LOGIN_VEC 24
|
||||
131 #define RET_CUR_DISK 25
|
||||
132 #define SET_DMA_ADDR 26
|
||||
133 #define GET_ADDR(ALLOC) 27
|
||||
134 #define WRITE_PROT_DISK 28
|
||||
135 #define GET_READ/O_VEC 29
|
||||
136 #define SET_FILE_ATTRIB 30
|
||||
137 #define GET_ADDR_D_PARM 31
|
||||
138 #define GET_USER_NO 32
|
||||
139 #define READ_RANDOM 33
|
||||
140 #define WRITE_RANDOM 34
|
||||
141 #define COMP_FILE-SIZE 35
|
||||
142 #define SET_RANDOM_REC 36
|
||||
143 #define RESET_DRIVE 37
|
||||
144 #define WRITE_RAN_ZERO 40
|
||||
145 #define BIOS_CALL 50
|
||||
146 #define LOAD_PROGRAM 59
|
||||
147
|
||||
148 /*----------------------------------------------*\
|
||||
149 | MACROS |
|
||||
150 \*----------------------------------------------*/
|
||||
151
|
||||
152 #define isalpha(c) (islower(c) || isupper(c))
|
||||
153 #define islower(c) ('a' <= (c) && (c) <= 'z')
|
||||
154 #define isupper(c) ('A' <= (c) && (c) <= 'Z')
|
||||
155 #define tolower(c) (isupper(c) ? ((c)+040):(c))
|
||||
156 #define toupper(c) (islower(c) ? ((c)-040):(c))
|
||||
157 #define isdigit(c) ('0' <= (c) && (c) <= '9')
|
||||
158
|
||||
Reference in New Issue
Block a user