annotate level1/modules/sysgo.asm @ 0:6641a883d6b0

Initial revision
author boisy
date Thu, 04 Apr 2002 16:34:12 +0000
parents
children 6f72b77131c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * SysGo - OS-9 Level One 2 SysGo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 12 Tandy/Microware original version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 * 13 Incremented version number to reflect Y2K BGP 99/05/11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 * fixes
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 nam SysGo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ttl OS-9 Level One 2 SysGo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 use scfdefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 tylg set Systm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 edition set 13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 dataarea rmb 200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 name fcs /SysGo/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 * default OS-9 priority
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 DefPrior set 128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 BootMsg fcc "OS-9 LEVEL ONE VR. 0"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 fcb 48+OS9Vrsn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 fcc ".0"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 fcb 48+OS9Major
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 fcc ".0"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 fcb 48+OS9Minor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 fdb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 fcc "COPR. 1980 BY MOTOROLA INC. AND"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 fdb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 fcc "MICROWARE SYSTEMS CORP."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fdb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 fcc "LICENSED TO TANDY CORP."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fdb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 fcc "ALL RIGHTS RESERVED."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 fdb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 MsgEnd equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 ChdDev fcc "/H0"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 ChxDev fcc "/H0/"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 ChxPath fcc "Cmds"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcc ",,,,,,,,,,"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 Shell fcc "Shell"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 fcc "TSMON"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 Startup fcc "STARTUP -P"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 fcc ",,,,,,,,,,"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 * Default time packet
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 * YY MM DD HH MM SS
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 TimePckt fcb 85,06,01,00,00,00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 BasicRst fcb $55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 fcb $74
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 fcb $12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 fcb $7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 fcb $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 fcb $12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 fcb $12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 fcb $B7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 fcb $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 fcb $DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 fcb $7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 fcb $EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 fcb $0E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 * SysGo entry point
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 os9 F$Icpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 leax >BasicRst,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 ldu #$0071
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 CopyLoop lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 bne CopyLoop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 * Print boot message
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 leax >BootMsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 ldy #MsgEnd-BootMsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 leax >TimePckt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 os9 F$STime
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 leax >ChxPath,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 leax >ChdDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 bcs DoStrtup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 leax >ChxDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 bcc DoStrtup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 * Set priority and do startup file
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 DoStrtup os9 F$ID
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 ldb #DefPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 os9 F$SPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 leau >Startup,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 ldy #$0015
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 bcs DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 FrkShell leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 ldy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 bcs DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 bcc FrkShell
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 DeadEnd bra DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 * Intercept routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 end