1145
|
1 ******************************************************
|
|
2 * F$ReBoot entry point
|
|
3 * Currently disabled (doesn't work)
|
|
4 * Besides, there's no need for this code to be in system memory.
|
|
5 * A user-mode program can do this just as well.
|
|
6 *
|
|
7 * Entry A = 0 Cold ReBoot
|
|
8 * = 1 Quit to RSDOS
|
|
9 *
|
|
10 *ReBoot equ *
|
|
11 * orcc #Carry Set error flag
|
|
12 * rts Exit
|
|
13 * tst R$A,u Cold start (a=0)
|
|
14 * bne WarmBt no, attempt a warm boot
|
|
15 *WarmBt orcc #IntMasks
|
|
16 * ldb #CodeSize
|
|
17 * leax BootCode,pc
|
|
18 * tfr 0,y
|
|
19 *BootLoop lda ,x+
|
|
20 * sta ,y+
|
|
21 * decb
|
|
22 * bne BootLoop
|
|
23 * jmp >$0000
|
|
24 *BootCode equ *
|
|
25 * lda >$ffa8
|
|
26 * sta >$ffa0
|
|
27 * clra
|
|
28 * sta >$ff90
|
|
29 * sta >$ff91
|
|
30 * jmp >$ed5f
|
|
31 *CodeSize equ *-BootCode
|
|
32
|