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

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