0
|
1 ********************************************************************
|
|
2 * oscode - OS-9 Level One V2 bootstrap code
|
|
3 *
|
|
4 * $Id$
|
|
5 *
|
|
6 * Ed. Comments Who YY/MM/DD
|
|
7 * ------------------------------------------------------------------
|
201
|
8 * From Tandy OS-9 Level One VR 02.00.00
|
0
|
9
|
6
|
10 ifp1
|
0
|
11 use defsfile
|
6
|
12 endc
|
0
|
13
|
|
14 * Initial code executed upon booting up to OS-9
|
|
15 org $2600
|
|
16
|
|
17 Start fcc /OS/
|
|
18 bra L2620
|
|
19
|
|
20 fdb $1204
|
|
21 BootMsg fcc /OSy/
|
|
22 fcb $60
|
|
23 fcc /BOOT/
|
|
24
|
|
25 L2620 clr PIA.U4+3
|
|
26 sta $FFDF turn off ROM
|
|
27 * locate Boot Text Screen at $8000
|
|
28 ldb #$06
|
|
29 ldx #$FFC6
|
|
30 L262B sta ,x++
|
|
31 decb
|
|
32 bne L262B
|
|
33 sta 1,x
|
|
34
|
|
35 * clear screen at $8000
|
|
36 ldx #$8000
|
|
37 ldy #$0200
|
|
38 lda #$60
|
|
39 L263B sta ,x+
|
|
40 leay -1,y
|
|
41 bne L263B
|
|
42
|
|
43 * Copy "OS9 BOOT" to screen area
|
|
44 ldx #$810C
|
|
45 leay <BootMsg,pcr
|
|
46 ldb #$08
|
|
47 L2649 lda ,y+
|
|
48 sta ,x+
|
|
49 decb
|
|
50 bne L2649
|
|
51
|
|
52 ldd #$1212
|
|
53 cmpd <$0078
|
|
54 beq L266E
|
|
55 leau >Start,pcr
|
|
56 ldx #$0F80
|
|
57 ldy #$EF00
|
|
58 L2663 lda ,u+
|
|
59 sta ,y+
|
|
60 leax -1,x
|
|
61 bne L2663
|
|
62 jmp >$EF5C
|
|
63 L266E leax <eoc,pcr
|
|
64 ldd $09,x
|
|
65 jmp d,x
|
|
66
|
|
67 eoc equ *
|
|
68 end
|
|
69
|