annotate defs/proc.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: 1630
diff changeset
2 ; proc - Process Descriptor Constants
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/05/17 Boisy G. Pitre
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
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: 1630
diff changeset
12 .title Process Descriptor Constants
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
13
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
14 .area PROC (ABS)
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
15
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
16 .ifndef Level
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
17 Level == 1
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
18 .endif
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
19
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1628
diff changeset
20 .iflt Level-2
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
21
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
22 ; Level 1 process descriptor defs
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
23 DefIOSiz == 12
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
24 NumPaths == 16 ; Number of Local Paths
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
25
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
26 P$ID == 0h00 ; Process ID
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
27 P$PID == 0h01 ; Parent's ID
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
28 P$SID == 0h02 ; Sibling's ID
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
29 P$CID == 0h03 ; Child's ID
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
30 P$SP == 0h04 ; Stack ptr
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
31 P$CHAP == 0h06 ; process chapter number
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
32 P$ADDR == 0h07 ; user address beginning page number
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
33 P$PagCnt == 0h08 ; Memory Page Count
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
34 P$User == 0h09 ; User Index
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
35 P$Prior == 0h0B ; Priority
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
36 P$Age == 0h0C ; Age
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
37 P$State == 0h0D ; Process State
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
38 P$Queue == 0h0E ; Queue Link (Process ptr)
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
39 P$IOQP == 0h10 ; Previous I/O Queue Link (Process ID)
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
40 P$IOQN == 0h11 ; Next I/O Queue Link (Process ID)
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
41 P$PModul == 0h12 ; Primary Module
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
42 P$SWI == 0h14 ; SWI Entry Point
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
43 P$SWI2 == 0h16 ; SWI2 Entry Point
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
44 P$SWI3 == 0h18 ; SWI3 Entry Point
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
45 P$DIO == 0h1A ; default I/O ptrs
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
46 P$PATH == P$DIO+DefIOSiz ; I/O path table
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
47 P$Signal == P$PATH+NumPaths ; Signal Code
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
48 P$SigVec == P$Signal+2 ; Signal Intercept Vector
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
49 P$SigDat == P$SigVec+22 ; Signal Intercept Data Address
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
50 P$NIO == 4 ; additional DIO pointers for net
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
51 ; unused
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
52 .org 0h40
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
53 P$Size == . ; Size of Process Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
54
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
55 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
56 ; Process State Flags
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
57 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
58 SysState == 0b10000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
59 TimSleep == 0b01000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
60 TimOut == 0b00100000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
61 ImgChg == 0b00010000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
62 Condem == 0b00000010
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
63 Dead == 0b00000001
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
64
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
65 .else
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
66
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
67 ; Level 2 process descriptor defs
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
68 DefIOSiz == 16 ; Default I/O Data Length
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
69 NefIOSiz == 12 ; On-Net Default I/O Data Length
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
70 NumPaths == 16 ; Number of Local Paths
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
71
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
72 .org 0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
73 P$ID:: .rmb 1 ; Process ID
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
74 P$PID:: .rmb 1 ; Parent's ID
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
75 P$SID:: .rmb 1 ; Sibling's ID
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
76 P$CID:: .rmb 1 ; Child's ID
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
77 P$SP:: .rmb 2 ; Stack ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
78 P$Task:: .rmb 1 ; Task Number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
79 P$PagCnt:: .rmb 1 ; Memory Page Count
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
80 P$User:: .rmb 2 ; User Index
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
81 P$Prior:: .rmb 1 ; Priority
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
82 P$Age:: .rmb 1 ; Age
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
83 P$State:: .rmb 1 ; Status
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
84 P$Queue:: .rmb 2 ; Queue Link (Process ptr)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
85 P$IOQP:: .rmb 1 ; Previous I/O Queue Link (Process ID)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
86 P$IOQN:: .rmb 1 ; Next I/O Queue Link (Process ID)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
87 P$PModul:: .rmb 2 ; Primary Module
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
88 P$SWI:: .rmb 2 ; SWI Entry Point
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
89 P$SWI2:: .rmb 2 ; SWI2 Entry Point
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
90 P$SWI3:: .rmb 2 ; SWI3 Entry Point
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
91 P$Signal:: .rmb 1 ; Signal Code
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
92 P$SigVec:: .rmb 2 ; Signal Intercept Vector
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
93 P$SigDat:: .rmb 2 ; Signal Intercept Data Address
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
94 P$DeadLk:: .rmb 1 ; Dominant proc ID if I/O locked
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
95 .org 0h20
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
96 P$DIO:: .rmb DefIOSiz ; Default I/O ptrs
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
97 P$Path:: .rmb NumPaths ; I/O Path Table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
98 P$DATImg:: .rmb 64 ; DAT Image
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
99 P$Links:: .rmb 32 ; Block Link counts
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
100 P$NIO:: .rmb 6*2 ; additional DIO ptrs for net, compatible with 68k
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
101 P$SelP:: .rmb 1 ; Selected Path for COCO Windows (Default 0)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
102 P$UTicks:: .rmb 4 ; proc User Tick counter (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
103 P$STicks:: .rmb 4 ; proc System Tick counter (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
104 P$FCalls:: .rmb 4 ; proc F$ call counter (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
105 P$ICalls:: .rmb 4 ; proc I$ call counter (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
106 P$DatBeg:: .rmb 3 ; proc Date of creation (Y/M/D) (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
107 P$TimBeg:: .rmb 3 ; proc Time of creation (H/M/S) (L2V3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
108 P$Alarm:: .rmb 6
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
109 ; Local stack
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
110 .org 0h200
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
111 P$Stack == . ; Top of Stack
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
112 P$Size == . ; Size of Process Descriptor
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
113
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
114 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
115 ; Process State Flags
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
116 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
117 SysState == 0b10000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
118 TimSleep == 0b01000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
119 TimOut == 0b00100000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
120 ImgChg == 0b00010000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
121 Suspend == 0b00001000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
122 Condem == 0b00000010
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
123 Dead == 0b00000001
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
124
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
125 .endif