Mercurial > hg > Members > kono > nitros9-code
annotate level1/modules/oscode.asm @ 556:28a203bbd2cc
findstr and signal finished.
author | roug |
---|---|
date | Tue, 22 Oct 2002 19:09:04 +0000 |
parents | 6992acfc221f |
children | dd89c62ea2ca |
rev | line source |
---|---|
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 |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
9 * Also put in conditionals for the Dragon 64 |
0 | 10 |
6 | 11 ifp1 |
0 | 12 use defsfile |
6 | 13 endc |
0 | 14 |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
15 ScrnLoc equ $8000 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
16 OS9Start equ $EF00 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
17 OS9Size equ $0F80 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
18 |
0 | 19 * Initial code executed upon booting up to OS-9 |
20 | |
21 Start fcc /OS/ | |
22 bra L2620 | |
23 | |
24 fdb $1204 | |
267 | 25 BootMsg fcc /OSy/ |
0 | 26 fcb $60 |
267 | 27 fcc /BOOT/ |
205 | 28 BootMLen equ *-BootMsg |
0 | 29 |
30 L2620 clr PIA.U4+3 | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
31 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
32 ifne Dragon64 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
33 clr PIA.U4+1 added for Dragon, works on CoCo |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
34 endc |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
35 |
0 | 36 sta $FFDF turn off ROM |
37 * locate Boot Text Screen at $8000 | |
38 ldb #$06 | |
39 ldx #$FFC6 | |
40 L262B sta ,x++ | |
41 decb | |
42 bne L262B | |
43 sta 1,x | |
44 | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
45 * Clear VDG screen |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
46 ldx #ScrnLoc |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
47 ldy #512 |
0 | 48 lda #$60 |
49 L263B sta ,x+ | |
50 leay -1,y | |
51 bne L263B | |
52 | |
53 * Copy "OS9 BOOT" to screen area | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
54 ldx #ScrnLoc+$10C |
0 | 55 leay <BootMsg,pcr |
205 | 56 ldb #BootMLen |
0 | 57 L2649 lda ,y+ |
58 sta ,x+ | |
59 decb | |
60 bne L2649 | |
61 | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
62 ifne Dragon64 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
63 tst <$72 |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
64 else |
0 | 65 ldd #$1212 |
66 cmpd <$0078 | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
67 endc |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
68 |
0 | 69 beq L266E |
70 leau >Start,pcr | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
71 ldx #OS9Size |
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
72 ldy #OS9Start |
0 | 73 L2663 lda ,u+ |
74 sta ,y+ | |
75 leax -1,x | |
76 bne L2663 | |
235
3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
boisy
parents:
205
diff
changeset
|
77 jmp >OS9Start+L266E |
0 | 78 L266E leax <eoc,pcr |
79 ldd $09,x | |
80 jmp d,x | |
81 | |
82 eoc equ * | |
83 end | |
84 |