-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathos9calls.c
More file actions
196 lines (176 loc) · 6.86 KB
/
os9calls.c
File metadata and controls
196 lines (176 loc) · 6.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/*****************************************************************************
os9calls.c - Table of OS-9 SWI calls
Copyright (C) 1996, 1997, 2014, 2018, by Chet Simpson.
This file is distributed under the MIT License. See notice at the end
of this file.
*****************************************************************************/
#include "disasm.h"
OS9Call os9calls[MAX_OS9CALLS] =
{
{"F$Link", "Link to Module"},
{"F$Load", "Load Module from File"},
{"F$UnLink", "Unlink Module"},
{"F$Fork", "Start New Process"},
{"F$Wait", "Wait for Child Process to Die"},
{"F$Chain", "Chain Process to New Module"},
{"F$Exit", "Terminate Process"},
{"F$Mem", "Set Memory Size"},
{"F$Send", "Send Signal to Process"},
{"F$Icpt", "Set Signal Intercept"},
{"F$Sleep", "Suspend Process"},
{"F$SSpd", "Suspend Process"},
{"F$ID", "Return Process ID"},
{"F$SPrior", "Set Process Priority"},
{"F$SSWI", "Set Software Interrupt"},
{"F$PErr", "Print Error"},
{"F$PrsNam", "Parse Pathlist Name"},
{"F$CmpNam", "Compare Two Names"},
{"F$SchBit", "Search Bit Map"},
{"F$AllBit", "Allocate in Bit Map"},
{"F$DelBit", "Deallocate in Bit Map"},
{"F$Time", "Get Current Time"},
{"F$STime", "Set Current Time"},
{"F$CRC", "Generate CRC"},
{"F$GPrDsc", "get Process Descriptor copy"},
{"F$GBlkMp", "get System Block Map copy"},
{"F$GModDr", "get Module Directory copy"},
{"F$CpyMem", "Copy External Memory"},
{"F$SUser", "Set User ID number"},
{"F$UnLoad", "Unlink Module by name"},
{"F$Alarm", "Color Computer Alarm Call"},
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{"F$NMLink", "Color Computer NonMapping Link"},
{"F$NMLoad", "Color Computer NonMapping Load"},
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{"F$VIRQ", "Install/Delete Virtual IRQ"},
{"F$SRqMem", "System Memory Request"},
{"F$SRtMem", "System Memory Return"},
{"F$IRQ", "Enter IRQ Polling Table"},
{"F$IOQu", "Enter I/O Queue"},
{"F$AProc", "Enter Active Process Queue"},
{"F$NProc", "Start Next Process"},
{"F$VModul", "Validate Module"},
{"F$Find64", "Find Process/Path Descriptor"},
{"F$All64", "Allocate Process/Path Descriptor"},
{"F$Ret64", "Return Process/Path Descriptor"},
{"F$SSvc", "Service Request Table Initialization"},
{"F$IODel", "Delete I/O Module"},
{"F$SLink", "System Link"},
{"F$Boot", "Bootstrap System"},
{"F$BtMem", "Bootstrap Memory Request"},
{"F$GProcP", "Get Process ptr"},
{"F$Move", "Move Data (low bound first)"},
{"F$AllRAM", "Allocate RAM blocks"},
{"F$AllImg", "Allocate Image RAM blocks"},
{"F$DelImg", "Deallocate Image RAM blocks"},
{"F$SetImg", "Set Process DAT Image"},
{"F$FreeLB", "Get Free Low Block"},
{"F$FreeHB", "Get Free High Block"},
{"F$AllTsk", "Allocate Process Task number"},
{"F$DelTsk", "Deallocate Process Task number"},
{"F$SetTsk", "Set Process Task DAT registers"},
{"F$ResTsk", "Reserve Task number"},
{"F$RelTsk", "Release Task number"},
{"F$DATLog", "Convert DAT Block/Offset to Logical"},
{"F$DATTmp", "Make temporary DAT image (Obsolete)"},
{"F$LDAXY", "Load A [X,[Y]]"},
{"F$LDAXYP", "Load A [X+,[Y]]"},
{"F$LDDDXY", "Load D [D+X,[Y]]"},
{"F$LDABX", "Load A from 0,X in task B"},
{"F$STABX", "Store A at 0,X in task B"},
{"F$AllPrc", "Allocate Process Descriptor"},
{"F$DelPrc", "Deallocate Process Descriptor"},
{"F$ELink", "Link using Module Directory Entry"},
{"F$FModul", "Find Module Directory Entry"},
{"F$MapBlk", "Map Specific Block"},
{"F$ClrBlk", "Clear Specific Block"},
{"F$DelRAM", "Deallocate RAM blocks"},
{"F$GCMDir", "Pack module directory"},
{"F$AlHRam", "Allocate HIGH RAM Blocks"},
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{NULL, NULL}, /* reserved */
{"I$Attach", "Attach I/O Device"},
{"I$Detach", "Detach I/O Device"},
{"I$Dup", "Duplicate Path"},
{"I$Create", "Create New File"},
{"I$Open", "Open Existing File"},
{"I$MakDir", "Make Directory File"},
{"I$ChgDir", "Change Default Directory"},
{"I$Delete", "Delete File"},
{"I$Seek", "Change Current Position"},
{"I$Read", "Read Data"},
{"I$Write", "Write Data"},
{"I$ReadLn", "Read Line of ASCII Data"},
{"I$WritLn", "Write Line of ASCII Data"},
{"I$GetStt", "Get Path Status"},
{"I$SetStt", "Set Path Status"},
{"I$Close", "Close Path"},
{"I$DeletX", "Delete from current exec dir"}
};
/*****************************************************************************
Copyright (C) 1996, 1997, 2014, 2018, by Chet Simpson
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*****************************************************************************/