Mercurial > hg > Members > kono > nitros9-code
annotate defs/syscall.d @ 1919:028161cd3535
uses ss.fd
author | boisy |
---|---|
date | Fri, 25 Nov 2005 12:39:54 +0000 |
parents | 27e85b681dab |
children |
rev | line source |
---|---|
1626 | 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1756
diff
changeset
|
2 ; syscall - NitrOS-9 System Call Definitions |
1626 | 3 ; |
4 ; $Id$ | |
5 ; | |
6 ; Edt/Rev YYYY/MM/DD Modified by | |
7 ; Comment | |
8 ; ------------------------------------------------------------------ | |
9 ; 2004/07/02 Boisy G. Pitre | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1756
diff
changeset
|
10 ; Created. |
1626 | 11 |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1756
diff
changeset
|
12 .title NitrOS-9 System Call Definitions |
1626 | 13 |
14 .area SYS (ABS) | |
15 | |
16 .ifndef Level | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
17 Level == 1 |
1626 | 18 .endif |
19 | |
20 ; Common definitions | |
21 true == 1 | |
22 false == 0 | |
23 | |
24 .page | |
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
26 ; System Service Request Code Definitions | |
27 ; | |
1756 | 28 F$Link == 0h00 ; Link to Module |
29 F$Load == 0h01 ; Load Module from File | |
30 F$UnLink == 0h02 ; Unlink Module | |
31 F$Fork == 0h03 ; Start New Process | |
32 F$Wait == 0h04 ; Wait for Child Process to Die | |
33 F$Chain == 0h05 ; Chain Process to New Module | |
34 F$Exit == 0h06 ; Terminate Process | |
35 F$Mem == 0h07 ; Set Memory Size | |
36 F$Send == 0h08 ; Send Signal to Process | |
37 F$Icpt == 0h09 ; Set Signal Intercept | |
38 F$Sleep == 0h0A ; Suspend Process | |
39 F$SSpd == 0h0B ; Suspend Process | |
40 F$ID == 0h0C ; Return Process ID | |
41 F$SPrior == 0h0D ; Set Process Priority | |
42 F$SSWI == 0h0E ; Set Software Interrupt | |
43 F$PErr == 0h0F ; Print Error | |
44 F$PrsNam == 0h10 ; Parse Pathlist Name | |
45 F$CmpNam == 0h11 ; Compare Two Names | |
46 F$SchBit == 0h12 ; Search Bit Map | |
47 F$AllBit == 0h13 ; Allocate in Bit Map | |
48 F$DelBit == 0h14 ; Deallocate in Bit Map | |
49 F$Time == 0h15 ; Get Current Time | |
50 F$STime == 0h16 ; Set Current Time | |
51 F$CRC == 0h17 ; Generate CRC | |
1626 | 52 |
53 .ifgt Level-1 | |
54 | |
55 ; NitrOS-9 Level 2 system calls | |
1756 | 56 F$GPrDsc == 0h18 ; Get Process Descriptor copy |
57 F$GBlkMp == 0h19 ; Get System Block Map copy | |
58 F$GModDr == 0h1A ; Get Module Directory copy | |
59 F$CpyMem == 0h1B ; Copy External Memory | |
60 F$SUser == 0h1C ; Set User ID number | |
61 F$UnLoad == 0h1D ; Unlink Module by name | |
62 F$Alarm == 0h1E ; Color Computer 3 Alarm Call | |
63 | |
64 F$NMLink == 0h21 ; Color Computer 3 Non-Mapping Link | |
65 F$NMLoad == 0h22 ; Color Computer 3 Non-Mapping Load | |
66 | |
67 F$TPS == 0h25 ; Return System's Ticks Per Second | |
68 F$TimAlm == 0h26 ; CoCo individual process alarm call | |
1626 | 69 |
70 .endif | |
71 | |
1756 | 72 ; Beginning of System Reserved Calls |
73 F$VIRQ == 0h27 ; Install/Delete Virtual IRQ | |
74 F$SRqMem == 0h28 ; System Memory Request | |
75 F$SRtMem == 0h29 ; System Memory Return | |
76 F$IRQ == 0h2A ; Enter IRQ Polling Table | |
77 F$IOQu == 0h2B ; Enter I/O Queue | |
78 F$AProc == 0h2C ; Enter Active Process Queue | |
79 F$NProc == 0h2D ; Start Next Process | |
80 F$VModul == 0h2E ; Validate Module | |
81 F$Find64 == 0h2F ; Find Process/Path Descriptor | |
82 F$All64 == 0h30 ; Allocate Process/Path Descriptor | |
83 F$Ret64 == 0h31 ; Return Process/Path Descriptor | |
84 F$SSvc == 0h32 ; Service Request Table Initialization | |
85 F$IODel == 0h33 ; Delete I/O Module | |
1626 | 86 |
87 .ifgt Level-1 | |
88 | |
1756 | 89 F$SLink == 0h34 ; System Link |
90 F$Boot == 0h35 ; Bootstrap System | |
91 F$BtMem == 0h36 ; Bootstrap Memory Request | |
92 F$GProcP == 0h37 ; Get Process ptr | |
93 F$Move == 0h38 ; Move Data (low bound first) | |
94 F$AllRAM == 0h39 ; Allocate RAM blocks | |
95 F$AllImg == 0h3A ; Allocate Image RAM blocks | |
96 F$DelImg == 0h3B ; Deallocate Image RAM blocks | |
97 F$SetImg == 0h3C ; Set Process DAT Image | |
98 F$FreeLB == 0h3D ; Get Free Low Block | |
99 F$FreeHB == 0h3E ; Get Free High Block | |
100 F$AllTsk == 0h3F ; Allocate Process Task number | |
101 F$DelTsk == 0h40 ; Deallocate Process Task number | |
102 F$SetTsk == 0h41 ; Set Process Task DAT registers | |
103 F$ResTsk == 0h42 ; Reserve Task number | |
104 F$RelTsk == 0h43 ; Release Task number | |
105 F$DATLog == 0h44 ; Convert DAT Block/Offset to Logical | |
106 F$DATTmp == 0h45 ; Make temporary DAT image (Obsolete) | |
107 F$LDAXY == 0h46 ; Load A [X,[Y]] | |
108 F$LDAXYP == 0h47 ; Load A [X+,[Y]] | |
109 F$LDDDXY == 0h48 ; Load D [D+X,[Y]] | |
110 F$LDABX == 0h49 ; Load A from 0,X in task B | |
111 F$STABX == 0h4A ; Store A at 0,X in task B | |
112 F$AllPrc == 0h4B ; Allocate Process Descriptor | |
113 F$DelPrc == 0h4C ; Deallocate Process Descriptor | |
114 F$ELink == 0h4D ; Link using Module Directory Entry | |
115 F$FModul == 0h4E ; Find Module Directory Entry | |
116 F$MapBlk == 0h4F ; Map Specific Block | |
117 F$ClrBlk == 0h50 ; Clear Specific Block | |
118 F$DelRAM == 0h51 ; Deallocate RAM blocks | |
119 F$GCMDir == 0hh52 ; Pack module directory | |
120 F$AlHRAM == 0h53 ; Allocate HIGH RAM Blocks | |
1626 | 121 |
122 ; Alan DeKok additions | |
123 ; F$ReBoot is unimplemented at this time | |
1756 | 124 F$ReBoot == 0h54 ; Reboot machine (reload OS9Boot) or drop to RSDOS |
125 F$CRCMod == 0h55 ; CRC mode, toggle or report current status | |
126 F$XTime == 0h56 ; Get Extended time packet from RTC (fractions of second) | |
127 F$VBlock == 0h57 ; Verify modules in a block of memory, add to module directory | |
1626 | 128 |
129 .endif | |
130 | |
131 ; | |
132 ; Numbers $70 through $7F are reserved for user definitions | |
133 ; | |
1756 | 134 ; .org 0h70 |
1626 | 135 |
1627 | 136 .iflt Level-2 |
1626 | 137 |
1756 | 138 ; .rmb 16 ; Reserved for user definition |
1626 | 139 |
140 .else | |
141 | |
1756 | 142 F$RegDmp == 0h70 ; Ron Lammardo's debugging register dump |
143 F$NVRAM == 0h71 ; Non Volatile RAM (RTC battery backed static) read/write | |
1627 | 144 ; Reserved for user definitions |
1626 | 145 |
146 .endif |