File tree 3 files changed +9
-51
lines changed
3 files changed +9
-51
lines changed Original file line number Diff line number Diff line change 7
7
* automatically.
8
8
9
9
FILES DATA FILEN1,FILEN2,FILEN3,FILEN4
10
- DATA FILEN5,FILEN6, LSTEND
10
+ DATA FILEN5,LSTEND
11
11
PDATAE
12
12
FILEN1 TEXT 'DSK2.ARRYTST.O'
13
13
FILEN2 TEXT 'DSK2.TESTUTIL.O'
14
14
FILEN3 TEXT 'DSK2.ARRAY.O'
15
15
FILEN4 TEXT 'DSK2.MEMBUF.O'
16
16
FILEN5 TEXT 'DSK2.VAR.O'
17
- FILEN6 TEXT 'DSK2.CONST.O'
18
17
LSTEND TEXT ' '
19
18
EVEN
20
19
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- DEF BUFINT,BUFALC,BUFCPY
2
- DEF BUFREE
1
+ DEF BUFINT,BUFALC,BUFCPY,BUFREE
2
+ DEF BLKUSE
3
3
* This library of routines stores
4
4
* chunks in a way that is inspired by
5
5
* but different from the C language's
@@ -39,7 +39,7 @@ BUFADR BSS >2
39
39
BUFEND BSS >2
40
40
41
41
* Mask to set or reset the "used" bit.
42
- FMASK DATA >8000
42
+ BLKUSE DATA >8000
43
43
44
44
*
45
45
* **** BUFINT ****
@@ -130,9 +130,9 @@ BUFALC DATA STRWS,BUFALC+4
130
130
* greater.
131
131
MOV @BUFADR,R3
132
132
SET1 MOV *R3,R4
133
- CZC @FMASK ,R4
133
+ CZC @BLKUSE ,R4
134
134
JEQ SET2
135
- SZC @FMASK ,R4
135
+ SZC @BLKUSE ,R4
136
136
SET3 A R4,R3
137
137
C R3,@BUFEND
138
138
JL SET1
@@ -152,7 +152,7 @@ SET2 BL @TRYMRG
152
152
* Save a copy of its address.
153
153
MOV R3,R1
154
154
* Mark the chunk as used
155
- SOC @FMASK ,*R3
155
+ SOC @BLKUSE ,*R3
156
156
* If the chunk is large enough to split,
157
157
* do so.
158
158
* Note that it is not possible for R4-R0
@@ -190,7 +190,7 @@ BUFREE DATA STRWS,BUFREE+4
190
190
* before the string address.
191
191
DECT R3
192
192
* Mark the block free
193
- SZC @FMASK ,*R3
193
+ SZC @BLKUSE ,*R3
194
194
* Merge this newly freed chunk with
195
195
* the following chunk if it is free.
196
196
BL @TRYMRG
@@ -223,7 +223,7 @@ TMRG1 A R4,R5
223
223
C R5,R1
224
224
JHE TMGR2
225
225
MOV *R5,R4
226
- CZC @FMASK ,R4
226
+ CZC @BLKUSE ,R4
227
227
JEQ TMRG1
228
228
* Calculate new offset
229
229
TMGR2 MOV R5,R4
You can’t perform that action at this time.
0 commit comments