annotate level1/modules/boot_d64.asm @ 306:c863af5b4ea1

init.asm: extended (see os9defs( os9.asm: added code to set D.CRC based on flag in init module
author boisy
date Mon, 22 Jul 2002 23:15:21 +0000
parents d6c4f9985571
children 360005465b59
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
238
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
1 ********************************************************************
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
2 * progname - program module
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
3 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
4 * $Id$
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
5 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
7 * ------------------------------------------------------------------
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
8 * - Original Dragon Data distribution version
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
9 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
10 * $Log$
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
11 * Revision 1.1 2002/07/18 19:46:07 roug
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
12 * We can now build a Dragon 64 kernel
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
13 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
14 * Revision 1.1 2002/04/21 21:27:50 roug
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
15 * These are the kernel modules from Dragon 64's OS9Boot.
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
16 * OS9 and OS9p2 are older than what's in ../MODULES so I checked them
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
17 * in as well.
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
18 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
19 *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
20
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
21 nam Boot
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
22 ttl os9 system module
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
23
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
24 * Disassembled 02/04/21 22:37:43 by Disasm v1.6 (C) 1988 by RML
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
25
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
26 ifp1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
27 use defsfile
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
28 endc
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
29 tylg set Systm+Objct
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
30 atrv set ReEnt+rev
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
31 rev set $01
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
32 edition set 1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
33 mod eom,name,tylg,atrv,start,size
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
34 u0000 rmb 2
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
35 u0002 rmb 1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
36 u0003 rmb 1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
37 u0004 rmb 1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
38 size equ .
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
39 name equ *
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
40 fcs /Boot/
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
41 fcb edition
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
42
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
43 * First, we make a stack...
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
44 start clra
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
45 ldb #size
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
46 MakeStak pshs a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
47 decb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
48 bne MakeStak
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
49
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
50 tfr s,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
51 ldx #$FF40
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
52 u001F lda #$D0
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
53 u0021 sta ,x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
54 u0023 lbsr L0178
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
55 lda ,x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
56 lda >$FF22
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
57 lda #$FF
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
58 sta u0004,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
59 leax >L0105,pcr
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
60 stx >$010A
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
61 lda #$7E
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
62 sta >$0109
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
63 lda #$04
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
64 sta >$FF48
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
65
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
66 * delay loop
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
67 u0040 ldd #$C350
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
68 L0043 nop
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
69 nop
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
70 subd #$0001
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
71 u0048 bne L0043
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
72
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
73 pshs u,x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
74 clra
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
75 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
76 ldy #$0001
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
77 ldx <u001F+1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
78 ldu <u0021+1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
79 os9 F$SchBit
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
80 bcs L009C
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
81 exg a,b
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
82 ldu $04,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
83 std u0002,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
84 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
85 * go get LSN0
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
86 ldx #$0000
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
87 bsr L00B9
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
88 bcs L009C
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
89
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
90 * get bootfile size from LSN0 and allocate memory for it
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
91 ldd <$18,y
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
92 std ,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
93 os9 F$SRqMem
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
94 bcs L009C
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
95 stu $02,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
96 ldu $04,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
97 ldx $02,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
98 stx u0002,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
99 ldx <$16,y
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
100 ldd <$18,y
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
101 beq L0095
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
102
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
103 * this loop reads a sector at a time from the bootfile
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
104 L0083 pshs x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
105 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
106 bsr L00B9
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
107 bcs L009A
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
108 puls x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
109 inc u0002,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
110 leax $01,x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
111 subd #$0100
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
112 bhi L0083
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
113 L0095 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
114 puls b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
115 bra L009E
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
116 L009A leas $04,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
117 L009C leas $02,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
118 L009E puls u,x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
119 leas $05,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
120 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
121 L00A3 clr ,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
122 clr u0004,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
123 lda #$05
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
124 L00A9 ldb #$43
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
125 pshs a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
126 bsr L00B6
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
127 puls a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
128 deca
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
129 bne L00A9
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
130 ldb #$03
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
131 L00B6 lbra L0164
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
132 L00B9 lda #$91
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
133 cmpx #$0000
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
134 bne L00D1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
135 bsr L00D1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
136 bcs L00C8
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
137 ldy u0002,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
138 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
139 L00C8 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
140
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
141 L00C9 bcc L00D1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
142 pshs x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
143 bsr L00A3
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
144 puls x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
145 L00D1 pshs x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
146 bsr L00DC
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
147 puls x,b,a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
148 bcc L00C8
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
149 lsra
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
150 bne L00C9
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
151 L00DC bsr L011B
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
152 bcs L00C8
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
153 ldx u0002,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
154 orcc #$50
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
155 pshs y,dp,cc
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
156 lda #$FF
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
157 tfr a,dp
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
158 lda #$34
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
159 sta <u0003
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
160 lda #$37
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
161 sta <u0023
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
162 lda <u0021+1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
163 ldb #$88
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
164 stb <u0040
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
165 ldb #$24
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
166 stb <u0048
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
167 L00FC sync
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
168 lda <L0043
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
169 ldb <u0021+1
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
170 sta ,x+
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
171 bra L00FC
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
172 L0105 leas $0C,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
173 lda #$04
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
174 sta <u0048
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
175 lda #$34
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
176 sta <u0023
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
177 ldb <u0040
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
178 puls y,dp,cc
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
179 bitb #$04
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
180 beq L015E
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
181 L0117 comb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
182 ldb #$F4
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
183 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
184 L011B clr ,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
185 tfr x,d
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
186 cmpd #$0000
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
187 beq L0134
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
188 clr ,-s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
189 bra L012B
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
190 L0129 inc ,s
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
191 L012B subd #$0012
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
192 bcc L0129
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
193 addb #$12
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
194 puls a
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
195 L0134 incb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
196 L0135 stb >$FF42
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
197 bsr L0178
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
198 cmpb >$FF42
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
199 bne L0135
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
200 ldb u0004,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
201 stb >$FF41
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
202 cmpa u0004,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
203 beq L015C
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
204 sta u0004,u
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
205 sta >$FF43
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
206 ldb #$13
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
207 bsr L0164
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
208 pshs x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
209 ldx #$222E
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
210 L0156 leax -$01,x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
211 bne L0156
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
212 puls x
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
213 L015C clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
214 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
215 L015E bitb #$98
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
216 bne L0117
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
217 clrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
218 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
219 L0164 bsr L0176
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
220 L0166 ldb >$FF40
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
221 lsrb
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
222 bcs L0166
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
223 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
224 L016D lda #$04
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
225 sta >$FF48
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
226 stb >$FF40
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
227 rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
228 L0176 bsr L016D
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
229 L0178 lbsr L017B
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
230 L017B lbsr L017E
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
231 L017E rts
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
232 emod
d6c4f9985571 We can now build a Dragon 64 kernel
roug
parents:
diff changeset
233 eom equ *