annotate bootman/bootman.a @ 2721:06d492093592 lwtools-port

Fixed echo problem with TCPOpen now always turning echo off
author Boisy Pitre <boisy.pitre@nuance.com>
date Thu, 26 Jul 2012 13:37:49 -0500
parents 9b435e747ff2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
1 NAM bootman
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
2 TTL Boot Manager
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
3
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
4 BOOTTRACK equ 0
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
5
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
6
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
7 PSECT bootman,$11,$80,0,0,entry
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
8
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
9 VSECT
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
10 ENDSECT
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
11
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
12 TOP EQU $FE00
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
13
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
14 * The entry point of the boot manager
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
15 * Entry: stack is set up, U points to static storage
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
16 csect
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
17 sectptr rmb 2
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
18 endsect
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
19
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
20 entry lbsr mach_init initialize the machine we're running on
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
21 leas entry,pcr set up stack
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
22 leau entry-256,pcr set up static storage
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
23 leax entry-512,pcr set up sector buffer pointer
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
24 stx sectptr,u
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
25 leax welcome,pcr
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
26 bsr writestr
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
27
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
28 * start booter calling
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
29 bootup
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
30 leax cfg_boot,pcr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
31 ldy ,x get address of booter
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
32 beq bootup if 0, try again
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
33
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
34 * call booter's get info entry
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
35 leax attempt,pcr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
36 bsr writestr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
37 jsr 12,y
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
38 bsr writestr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
39 leax crlf,pcr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
40 bsr writestr
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
41
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
42 loop bra loop
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
43
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
44
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
45 attempt fcc "Attempting to boot from "
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
46 fcb 0
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
47 welcome fcc "NitrOS-9 Boot Manager"
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2163
diff changeset
48 crlf fcb 13,10
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
49 fcb 0
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
50
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
51 * Helpful routines
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
52
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
53 * writestr - write string to output handler
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
54 * Entry:
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
55 * X = address of string (nul terminated)
2233
9b435e747ff2 CoCo and CoCO 3 versions
boisy
parents: 2191
diff changeset
56 * Preserves:
9b435e747ff2 CoCo and CoCO 3 versions
boisy
parents: 2191
diff changeset
57 * Y
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
58 writestr:
2233
9b435e747ff2 CoCo and CoCO 3 versions
boisy
parents: 2191
diff changeset
59 pshs y
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
60 leay llio,pcr
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
61 writeloop
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
62 lda ,x+
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
63 beq writedone
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
64 jsr 3,y
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
65 bra writeloop
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
66 writedone
2233
9b435e747ff2 CoCo and CoCO 3 versions
boisy
parents: 2191
diff changeset
67 puls y,pc
2163
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
68
2db06bc0742a Start of BootMan
boisy
parents:
diff changeset
69 endsect