annotate level2/modules/kernel/freboot.asm @ 1145:ca83286ded5b

Start of new OS-9 L2 Kernel
author boisy
date Tue, 22 Apr 2003 19:35:48 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
1 ******************************************************
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
2 * F$ReBoot entry point
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
3 * Currently disabled (doesn't work)
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
4 * Besides, there's no need for this code to be in system memory.
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
5 * A user-mode program can do this just as well.
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
6 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
7 * Entry A = 0 Cold ReBoot
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
8 * = 1 Quit to RSDOS
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
9 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
10 *ReBoot equ *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
11 * orcc #Carry Set error flag
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
12 * rts Exit
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
13 * tst R$A,u Cold start (a=0)
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
14 * bne WarmBt no, attempt a warm boot
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
15 *WarmBt orcc #IntMasks
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
16 * ldb #CodeSize
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
17 * leax BootCode,pc
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
18 * tfr 0,y
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
19 *BootLoop lda ,x+
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
20 * sta ,y+
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
21 * decb
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
22 * bne BootLoop
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
23 * jmp >$0000
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
24 *BootCode equ *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
25 * lda >$ffa8
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
26 * sta >$ffa0
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
27 * clra
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
28 * sta >$ff90
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
29 * sta >$ff91
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
30 * jmp >$ed5f
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
31 *CodeSize equ *-BootCode
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
32