Skip to content

Commit fff0c04

Browse files
committed
Remove need for CONST.TXT
1 parent 722eafe commit fff0c04

File tree

3 files changed

+9
-51
lines changed

3 files changed

+9
-51
lines changed

ARRYLOAD.TXT

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
* automatically.
88

99
FILES DATA FILEN1,FILEN2,FILEN3,FILEN4
10-
DATA FILEN5,FILEN6,LSTEND
10+
DATA FILEN5,LSTEND
1111
PDATAE
1212
FILEN1 TEXT 'DSK2.ARRYTST.O'
1313
FILEN2 TEXT 'DSK2.TESTUTIL.O'
1414
FILEN3 TEXT 'DSK2.ARRAY.O'
1515
FILEN4 TEXT 'DSK2.MEMBUF.O'
1616
FILEN5 TEXT 'DSK2.VAR.O'
17-
FILEN6 TEXT 'DSK2.CONST.O'
1817
LSTEND TEXT ' '
1918
EVEN
2019

CONST.TXT

-41
This file was deleted.

MEMBUF.TXT

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
DEF BUFINT,BUFALC,BUFCPY
2-
DEF BUFREE
1+
DEF BUFINT,BUFALC,BUFCPY,BUFREE
2+
DEF BLKUSE
33
* This library of routines stores
44
* chunks in a way that is inspired by
55
* but different from the C language's
@@ -39,7 +39,7 @@ BUFADR BSS >2
3939
BUFEND BSS >2
4040

4141
* Mask to set or reset the "used" bit.
42-
FMASK DATA >8000
42+
BLKUSE DATA >8000
4343

4444
*
4545
* **** BUFINT ****
@@ -130,9 +130,9 @@ BUFALC DATA STRWS,BUFALC+4
130130
* greater.
131131
MOV @BUFADR,R3
132132
SET1 MOV *R3,R4
133-
CZC @FMASK,R4
133+
CZC @BLKUSE,R4
134134
JEQ SET2
135-
SZC @FMASK,R4
135+
SZC @BLKUSE,R4
136136
SET3 A R4,R3
137137
C R3,@BUFEND
138138
JL SET1
@@ -152,7 +152,7 @@ SET2 BL @TRYMRG
152152
* Save a copy of its address.
153153
MOV R3,R1
154154
* Mark the chunk as used
155-
SOC @FMASK,*R3
155+
SOC @BLKUSE,*R3
156156
* If the chunk is large enough to split,
157157
* do so.
158158
* Note that it is not possible for R4-R0
@@ -190,7 +190,7 @@ BUFREE DATA STRWS,BUFREE+4
190190
* before the string address.
191191
DECT R3
192192
* Mark the block free
193-
SZC @FMASK,*R3
193+
SZC @BLKUSE,*R3
194194
* Merge this newly freed chunk with
195195
* the following chunk if it is free.
196196
BL @TRYMRG
@@ -223,7 +223,7 @@ TMRG1 A R4,R5
223223
C R5,R1
224224
JHE TMGR2
225225
MOV *R5,R4
226-
CZC @FMASK,R4
226+
CZC @BLKUSE,R4
227227
JEQ TMRG1
228228
* Calculate new offset
229229
TMGR2 MOV R5,R4

0 commit comments

Comments
 (0)