annotate level3/modules/nitro.asm @ 2630:e310e8613606

Fixed earlier change from yesterday due to misunderstanding of ordering of 6809 vectors on CoCo 1/2...
author Boisy Pitre <boisy.pitre@nuance.com>
date Sun, 26 Feb 2012 16:22:27 -0600
parents 87b07a1be8a0
children d0e8324af298
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
1 ********************************************************************
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
2 * NitrOS9 - Sets up NitrOS-9 Level 3
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
3 *
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
4 * $Id$
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
5 *
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
7 * Comment
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
9 * ????/??/?? Alan DeKok
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
10 * Created.
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
11
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
12 nam NitrOS9
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
13 ttl Sets up NitrOS-9 Level 3
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
14
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
15 ifp1
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
16 use defsfile
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
17 endc
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
18
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
19 tylg set Systm+Obj6309
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
21 rev set $04
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
22 mod eom,name,tylg,atrv,Start,size
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
23 u0000 rmb 0
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
24 size equ .
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
25 name equ *
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
26 fcs /NitrOS9/
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
27 fcb $01
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
28
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
29 Start ldd #$10ff illegal instruction, /0 trap
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
30 std >0
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
31 ldd #$0008
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
32 std >2
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
33 ldd #$20FE
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
34 std >4
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
35
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
36 * allocate a block of RAM for SCF drivers
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
37 ldu #eom get the size of this module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
38 leax eom,pc point to the next module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
39 ldy #L3.SCF
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
40
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
41 all.ram bsr f.modul move some modules over
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
42 tstb did we, in fact, move any?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
43 beq all.done if not, we're done
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
44 stb ,y+ save the starting RAM block number
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
45 bra all.ram and go get another block of RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
46
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
47 * Verify the rest of the boot: start of old OS9p1 code
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
48 all.done ldd <D.BtSz get the size of the boot
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
49 subr u,d take out the size of the modules we're skipping
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
50 * F$VBlock has NO exit conditions, and doesn't change any registers
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
51 OS9 F$VBlock go verify the rest of the OS9Boot file
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
52 * do NOT use U after this!
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
53
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
54 * set the DAT image of the allocate blocks to be RAMInUse, rather than
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
55 * Module In block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
56 ldx <D.SysDAT point to the system DAT image
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
57 ldb $0D,x grab the block# of the last allocated block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
58 incb account for block 0: leave SCF & RBF as ModInBlk
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
59 lda #RAMInUse set the RAM to be in use...
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
60 ldx <D.BlkMap point to system block allocation map
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
61
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
62 set.lp sta ,x+ allocate the RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
63 decb count down
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
64 bne set.lp continue until done
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
65
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
66 ldx <D.BlkMap grab the block map again
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
67 sta <$3F,x mark the boot track block as used, too.
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
68
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
69 * mark block 1 ($2000-$3FFF) in the system memory map as allocated
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
70 ldx <D.SysMem ptr to low system memory
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
71 ldd #$0100+L3.Size RAMInUse, N times
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
72 leax $20,x to the start of block 1 in the block map
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
73 blk.lp sta ,x+ set it to be in use
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
74 decb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
75 bne blk.lp
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
76
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
77 * U = total size of the crap we've removed
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
78 ldd <D.BtSz size of the bootfile
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
79 subr u,d take out size of code we've removed
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
80 std <D.BtSz
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
81 ldd <D.BtPtr
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
82 addr u,d point to new start of the OS9Booto file
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
83 pshs d and save for later
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
84 tfr u,d size of code we've taken out
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
85 subd #$00FF round _down_ a page
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
86
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
87 ldx <D.SysMem pt to system memory map
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
88 ldb <D.BtPtr point to start of OS9Boot in memory
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
89 abx go to it
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
90
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
91 * remove the memory from the system memory map
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
92 m.lp clr ,x+ set the RAM to be not in use
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
93 deca count down the number of pages we've moved
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
94 bne m.lp continue
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
95 bra x.done
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
96
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
97 leax -1,x point to last unused byte
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
98 tfr x,d move into an address register
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
99 lsra
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
100 lsra
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
101 lsra
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
102 lsra
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
103 lsra now A=block number of highest block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
104 ldb <D.BtPtr
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
105 lsrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
106 lsrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
107 lsrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
108 lsrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
109 lsrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
110 subr b,a same block? (now A=number of blocks to delete)
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
111 beq x.done yes, don't do anything
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
112
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
113 ldu <D.BlkMap point to system-wide block map
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
114 ldx <D.SysDAT pointer to system DAT image
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
115 lslb convert to DAT image offset
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
116 incb point to block number, not flag
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
117 abx point to the offset
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
118
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
119 x.loop ldb ,x++ grab a block number
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
120 clr b,u mark the block as unused
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
121 deca
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
122 bne x.loop continue until done
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
123
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
124 x.done puls d restore ptr to new start of the OS9Boot file
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
125 std <D.BtPtr and save it again
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
126 clrb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
127 rts
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
128
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
129 *============================================================================
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
130 *
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
131 * Copy the modules into local memory.
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
132 * Copied from [X] to a module called _end
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
133 * Entry: X = ptr to start at
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
134 * U = size of stuff deleted so far
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
135 * Exit : X = ptr to module after _end module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
136 * U = total size of stuff deleted
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
137
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
138 f.modul pshs b,x,y,u save start of area to move, size moved before
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
139 * grab the name: is it _end?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
140 is.end ldd ,x
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
141 cmpd #$87Cd is it a module?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
142 bne f.exit no, exit
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
143 ldd M$Name,x get the name pointer
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
144 ldd d,x get 2 bytes of the name
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
145 cmpd #$5F65 '_e'?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
146 beq fnd.end yes, found it
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
147
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
148 * skip this module if not at the end yet
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
149 ldd M$Size,x grab the module size
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
150 leax d,x go to the next module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
151 leau d,u add in the size of it
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
152 bra is.end and continue looking for end
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
153
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
154 f.exit clrb we're done everything
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
155 puls a,x,y,u,pc
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
156
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
157 * copy modules over, and verify
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
158 fnd.end ldy 1,s restore ptr to start of area to move
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
159 tfr u,w new size
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
160 subw 5,s take out old size: W = total size
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
161 cmpw #L3.Size*$FF greater than the room available?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
162 bhs f.exit yes, exit without allocating RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
163
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
164 * skip _end module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
165 ldd M$Size,x get size of the _end module
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
166 leax d,x skip it
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
167 leau d,u
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
168 stx 1,s save new start ptr
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
169 stu 5,s and new size
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
170
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
171 * we've found blocks to move, so let's allocate some RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
172 ldb #L3.Blks 1 block to allocate
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
173 OS9 F$AllRAM allocate some RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
174
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
175 std >$0642 map it into system DAT image
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
176 stb >$FFA1 map into physical RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
177 stb ,s save starting block number
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
178
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
179 ifeq L3.Blks-2 more than 1 block?
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
180 incb yes, go up by a block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
181 std >$0644 map it into the system DAT image
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
182 stb >$FFA2 and into the hardware
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
183 endc
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
184
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
185 * move the modules to local RAM
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
186 pshsw save size of the block to move
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
187 ldx #L3.Start+L3.Size where to move the stuff to
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
188 tfm y+,x+ move it from the OS9Boot file to IOMan local memory
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
189
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
190 * verify the modules
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
191 puls d grab the size of the block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
192 ldx #L3.Start+L3.Size start ptr again
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
193 OS9 F$VBlock verify the block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
194
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
195 * get A = total size (in pages) of stuff moved over
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
196 addd #L3.Size+$FF round up to the nearest block, adding in $20
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
197
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
198 * start with all local RAM deallocated
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
199 ldx #L3.Start to the start of the block
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
200 ldb #L3.Size-1 number of pages to mark as free
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
201 clr.lp clr b,x set them to be all clear.
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
202 decb
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
203 bpl clr.lp count down until B=-1
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
204
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
205 * allocate local RAM to the size of the modules we've moved over
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
206 ldb #RAMInUse RAM in use
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
207 all.lp stb ,x+ make the page allocated
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
208 deca count down a page
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
209 bne all.lp and continue
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
210
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
211 lda #'- a hyphen
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
212 jsr <D.BtBug print it out
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
213
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
214 * restore start, size pointers and exit
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
215 puls b,x,y,u,pc
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
216
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
217 emod
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
218 eom equ *
87b07a1be8a0 Updated and added coco3_6309
boisy
parents:
diff changeset
219 end