annotate defs/syscall.d @ 1627:f7ece667f6f1

Minor updates
author boisy
date Sat, 03 Jul 2004 01:36:47 +0000
parents c01a65c813ce
children 7af4d12008f4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
2 ; syscall
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
3 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
4 ; $Id$
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
5 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
6 ; Edt/Rev YYYY/MM/DD Modified by
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
7 ; Comment
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
8 ; ------------------------------------------------------------------
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
9 ; 2004/07/02 Boisy G. Pitre
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
10 ; Started
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
11
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
12 .title NitrOS-9 System Definitions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
13
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
14 .area SYS (ABS)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
15
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
16 .ifndef Level
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
17 Level == 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
18 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
19
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
20 ; Common definitions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
21 true == 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
22 false == 0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
23
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
24 .page
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
26 ; System Service Request Code Definitions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
27 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
28 .org 0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
29 F$Link:: .rmb 1 ; Link to Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
30 F$Load:: .rmb 1 ; Load Module from File
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
31 F$UnLink:: .rmb 1 ; Unlink Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
32 F$Fork:: .rmb 1 ; Start New Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
33 F$Wait:: .rmb 1 ; Wait for Child Process to Die
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
34 F$Chain:: .rmb 1 ; Chain Process to New Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
35 F$Exit:: .rmb 1 ; Terminate Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
36 F$Mem:: .rmb 1 ; Set Memory Size
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
37 F$Send:: .rmb 1 ; Send Signal to Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
38 F$Icpt:: .rmb 1 ; Set Signal Intercept
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
39 F$Sleep:: .rmb 1 ; Suspend Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
40 F$SSpd:: .rmb 1 ; Suspend Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
41 F$ID:: .rmb 1 ; Return Process ID
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
42 F$SPrior:: .rmb 1 ; Set Process Priority
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
43 F$SSWI:: .rmb 1 ; Set Software Interrupt
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
44 F$PErr:: .rmb 1 ; Print Error
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
45 F$PrsNam:: .rmb 1 ; Parse Pathlist Name
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
46 F$CmpNam:: .rmb 1 ; Compare Two Names
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
47 F$SchBit:: .rmb 1 ; Search Bit Map
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
48 F$AllBit:: .rmb 1 ; Allocate in Bit Map
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
49 F$DelBit:: .rmb 1 ; Deallocate in Bit Map
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
50 F$Time:: .rmb 1 ; Get Current Time
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
51 F$STime:: .rmb 1 ; Set Current Time
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
52 F$CRC:: .rmb 1 ; Generate CRC
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
53
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
54 .ifgt Level-1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
55
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
56 ; NitrOS-9 Level 2 system calls
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
57 F$GPrDsc:: .rmb 1 ; Get Process Descriptor copy
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
58 F$GBlkMp:: .rmb 1 ; Get System Block Map copy
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
59 F$GModDr:: .rmb 1 ; Get Module Directory copy
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
60 F$CpyMem:: .rmb 1 ; Copy External Memory
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
61 F$SUser:: .rmb 1 ; Set User ID number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
62 F$UnLoad:: .rmb 1 ; Unlink Module by name
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
63 F$Alarm:: .rmb 1 ; Color Computer 3 Alarm Call
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
64 .rmb 2 ; Reserved - For overlap of other systems
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
65 F$NMLink:: .rmb 1 ; Color Computer 3 Non-Mapping Link
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
66 F$NMLoad:: .rmb 1 ; Color Computer 3 Non-Mapping Load
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
67 .org 0h25
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
68 F$TPS:: .rmb 1 ; Return System's Ticks Per Second
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
69 F$TimAlm:: .rmb 1 ; CoCo individual process alarm call
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
70
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
71 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
72
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
73 .org 0h27 ; Beginning of System Reserved Calls
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
74 F$VIRQ:: .rmb 1 ; Install/Delete Virtual IRQ
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
75 F$SRqMem:: .rmb 1 ; System Memory Request
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
76 F$SRtMem:: .rmb 1 ; System Memory Return
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
77 F$IRQ:: .rmb 1 ; Enter IRQ Polling Table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
78 F$IOQu:: .rmb 1 ; Enter I/O Queue
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
79 F$AProc:: .rmb 1 ; Enter Active Process Queue
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
80 F$NProc:: .rmb 1 ; Start Next Process
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
81 F$VModul:: .rmb 1 ; Validate Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
82 F$Find64:: .rmb 1 ; Find Process/Path Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
83 F$All64:: .rmb 1 ; Allocate Process/Path Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
84 F$Ret64:: .rmb 1 ; Return Process/Path Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
85 F$SSvc:: .rmb 1 ; Service Request Table Initialization
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
86 F$IODel:: .rmb 1 ; Delete I/O Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
87
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
88 .ifgt Level-1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
89
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
90 F$SLink:: .rmb 1 ; System Link
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
91 F$Boot:: .rmb 1 ; Bootstrap System
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
92 F$BtMem:: .rmb 1 ; Bootstrap Memory Request
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
93 F$GProcP:: .rmb 1 ; Get Process ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
94 F$Move:: .rmb 1 ; Move Data (low bound first)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
95 F$AllRAM:: .rmb 1 ; Allocate RAM blocks
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
96 F$AllImg:: .rmb 1 ; Allocate Image RAM blocks
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
97 F$DelImg:: .rmb 1 ; Deallocate Image RAM blocks
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
98 F$SetImg:: .rmb 1 ; Set Process DAT Image
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
99 F$FreeLB:: .rmb 1 ; Get Free Low Block
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
100 F$FreeHB:: .rmb 1 ; Get Free High Block
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
101 F$AllTsk:: .rmb 1 ; Allocate Process Task number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
102 F$DelTsk:: .rmb 1 ; Deallocate Process Task number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
103 F$SetTsk:: .rmb 1 ; Set Process Task DAT registers
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
104 F$ResTsk:: .rmb 1 ; Reserve Task number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
105 F$RelTsk:: .rmb 1 ; Release Task number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
106 F$DATLog:: .rmb 1 ; Convert DAT Block/Offset to Logical
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
107 F$DATTmp:: .rmb 1 ; Make temporary DAT image (Obsolete)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
108 F$LDAXY:: .rmb 1 ; Load A [X,[Y]]
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
109 F$LDAXYP:: .rmb 1 ; Load A [X+,[Y]]
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
110 F$LDDDXY:: .rmb 1 ; Load D [D+X,[Y]]
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
111 F$LDABX:: .rmb 1 ; Load A from 0,X in task B
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
112 F$STABX:: .rmb 1 ; Store A at 0,X in task B
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
113 F$AllPrc:: .rmb 1 ; Allocate Process Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
114 F$DelPrc:: .rmb 1 ; Deallocate Process Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
115 F$ELink:: .rmb 1 ; Link using Module Directory Entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
116 F$FModul:: .rmb 1 ; Find Module Directory Entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
117 F$MapBlk:: .rmb 1 ; Map Specific Block
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
118 F$ClrBlk:: .rmb 1 ; Clear Specific Block
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
119 F$DelRAM:: .rmb 1 ; Deallocate RAM blocks
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
120 F$GCMDir:: .rmb 1 ; Pack module directory
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
121 F$AlHRAM:: .rmb 1 ; Allocate HIGH RAM Blocks
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
122
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
123 ; Alan DeKok additions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
124 ; F$ReBoot is unimplemented at this time
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
125 F$ReBoot:: .rmb 1 ; Reboot machine (reload OS9Boot) or drop to RSDOS
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
126 F$CRCMod:: .rmb 1 ; CRC mode, toggle or report current status
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
127 F$XTime:: .rmb 1 ; Get Extended time packet from RTC (fractions of second)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
128 F$VBlock:: .rmb 1 ; Verify modules in a block of memory, add to module directory
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
129
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
130 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
131
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
132 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
133 ; Numbers $70 through $7F are reserved for user definitions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
134 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
135 .org 0h70
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
136
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
137 .iflt Level-2
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
138
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
139 .rmb 16 ; Reserved for user definition
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
140
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
141 .else
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
142
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
143 F$RegDmp:: .rmb 1 ; Ron Lammardo's debugging register dump
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
144 F$NVRAM:: .rmb 1 ; Non Volatile RAM (RTC battery backed static) read/write
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
145 ; Reserved for user definitions
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
146
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
147 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
148
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
149 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
150 ; I/O Service Request Code Definitions
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
151 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
152 .org 0h80
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
153 I$Attach:: .rmb 1 ; Attach I/O Device
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
154 I$Detach:: .rmb 1 ; Detach I/O Device
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
155 I$Dup:: .rmb 1 ; Duplicate Path
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
156 I$Create:: .rmb 1 ; Create New File
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
157 I$Open:: .rmb 1 ; Open Existing File
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
158 I$MakDir:: .rmb 1 ; Make Directory File
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
159 I$ChgDir:: .rmb 1 ; Change Default Directory
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
160 I$Delete:: .rmb 1 ; Delete File
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
161 I$Seek:: .rmb 1 ; Change Current Position
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
162 I$Read:: .rmb 1 ; Read Data
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
163 I$Write:: .rmb 1 ; Write Data
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
164 I$ReadLn:: .rmb 1 ; Read Line of ASCII Data
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
165 I$WritLn:: .rmb 1 ; Write Line of ASCII Data
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
166 I$GetStt:: .rmb 1 ; Get Path Status
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
167 I$SetStt:: .rmb 1 ; Set Path Status
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
168 I$Close:: .rmb 1 ; Close Path
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
169 I$DeletX:: .rmb 1 ; Delete from current exec dir