annotate level1/modules/sysgo.asm @ 201:668388823050

Fixed headers to be consistent
author boisy
date Mon, 15 Jul 2002 03:52:49 +0000
parents 6f72b77131c0
children 06775bf93f3a
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 * ------------------------------------------------------------------
201
668388823050 Fixed headers to be consistent
boisy
parents: 76
diff changeset
8 * 12 From Tandy OS-9 Level One VR 02.00.00
668388823050 Fixed headers to be consistent
boisy
parents: 76
diff changeset
9 * 13 Incremented version number to reflect Y2K BGP 99/05/11
0
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
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
77 nop
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
78 clr >$FF03
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
79 nop
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
80 nop
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
81 sta >$FFDF
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
82 jmp >$EF0E
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 * SysGo entry point
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 os9 F$Icpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 leax >BasicRst,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 ldu #$0071
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 CopyLoop lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 bne CopyLoop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 * Print boot message
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 leax >BootMsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 ldy #MsgEnd-BootMsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 leax >TimePckt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 os9 F$STime
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 leax >ChxPath,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 leax >ChdDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 bcs DoStrtup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 leax >ChxDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 bcc DoStrtup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 * Set priority and do startup file
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 DoStrtup os9 F$ID
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 ldb #DefPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 os9 F$SPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 leau >Startup,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 ldy #$0015
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 bcs DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 FrkShell leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 ldy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 bcs DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 bcc FrkShell
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 DeadEnd bra DeadEnd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 * Intercept routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 end