annotate defs/syscall.d @ 1919:028161cd3535

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