Mercurial > hg > Members > kono > nitros9-code
annotate level2/modules/kernel/fdelimg.asm @ 3123:039ddb7c8ad7
l2 kernel: Remove tabs and trailing whitespace, align comments
No functional change (no change to generated binaries).
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Mon, 28 Nov 2016 08:31:26 +0000 |
parents | 1da8ab9ba433 |
children |
rev | line source |
---|---|
1345 | 1 ************************************************** |
2 * System Call: F$DelImg | |
3 * | |
4 * Function: Deallocate image RAM blocks | |
5 * | |
6 * Input: A = Beginning block number | |
7 * B = Block count | |
8 * X = Process descriptor pointer | |
9 * | |
10 * Output: None | |
11 * | |
12 * Error: CC = C bit set; B = error code | |
13 * | |
1145 | 14 FDelImg ldx R$X,u get process pointer |
15 ldd R$D,u get start block & block count | |
16 leau <P$DATImg,x point to DAT image | |
17 lsla 2 bytes per block entry | |
18 leau a,u Point U to block entry | |
19 * Block count in B | |
3123
039ddb7c8ad7
l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents:
1345
diff
changeset
|
20 L0B55 |
1145 | 21 IFNE H6309 |
22 ldw ,u Get block # | |
23 addw <D.BlkMap Add it to map ptr | |
24 aim #^RAMinUse,0,w | |
25 ldw #DAT.Free get empty block marker | |
26 stw ,u++ save it to process descriptor | |
27 decb done? | |
28 bne L0B55 No, keep going | |
29 oim #ImgChg,P$State,x | |
30 ELSE | |
31 clra | |
32 tfr d,y | |
33 pshs x | |
34 L0BLoop ldd ,u | |
35 addd <D.BlkMap | |
36 tfr d,x | |
37 lda ,x | |
38 anda #^RAMinUse | |
39 sta ,x | |
40 ldd #DAT.Free | |
41 std ,u++ | |
42 leay -1,y | |
43 bne L0BLoop | |
44 | |
45 puls x | |
46 lda P$State,x | |
47 ora #ImgChg | |
48 sta P$State,x | |
49 ENDC | |
3123
039ddb7c8ad7
l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents:
1345
diff
changeset
|
50 clrb |
039ddb7c8ad7
l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents:
1345
diff
changeset
|
51 rts |