Skip to content

Commit 5c079ad

Browse files
committed
Move variables out of MEMBUF.TXT to VAR.TXT
1 parent 98ac683 commit 5c079ad

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

LBUFTST.TXT

+4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ FILEN2 TEXT 'DSK2.TESTUTIL.O'
2626
PDATA3 DATA >0004,PABBUF,>5000,>0000,>000D
2727
FILEN3 TEXT 'DSK2.MEMBUF.O '
2828
BSS 7
29+
PDATA4 DATA >0004,PABBUF,>5000,>0000,>000A
30+
FILEN4 TEXT 'DSK2.VAR.O '
31+
BSS 7
2932
PDATAE
3033

3134
LDMSG TEXT 'Loading DSK2.BUFTST.O, '
3235
TEXT 'DST2.TESTUTIL.O, DSK2.MEMBUF.O '
36+
TEXT 'DSK2.VAR.O '
3337

3438
LTEST LI R0,0
3539
LI R1,LDMSG

MEMBUF.TXT

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
DEF BUFINT,BUFALC,BUFCPY,BUFREE
22
DEF BLKUSE
3+
*
4+
REF STRWS,BUFADR,BUFEND
35
* This library of routines stores
46
* chunks in a way that is inspired by
57
* but different from the C language's
@@ -27,17 +29,6 @@
2729
* header bytes and only >1E bytes can
2830
* hold data.
2931

30-
*
31-
* The >20 bytes would have been used
32-
* as the workspace for all STRBUF
33-
* routines.
34-
STRWS BSS >20
35-
* holds block size
36-
* holds address of buffer
37-
BUFADR BSS >2
38-
* holds first address after the buffer
39-
BUFEND BSS >2
40-
4132
* Mask to set or reset the "used" bit.
4233
BLKUSE DATA >8000
4334

VAR.TXT

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,25 @@
22
* Definitions in this file
33
*
44
* Register Workspaces
5-
DEF ARRYWS
5+
DEF ARRYWS,STRWS
6+
*
7+
DEF BUFADR,BUFEND
68

79
* Areas of memory that absolutely have
810
* to be in RAM and could never be part
911
* of a cartridge ROM should go here.
1012

13+
*
14+
* The >20 bytes would have been used
15+
* as the workspace for all STRBUF
16+
* routines.
17+
STRWS BSS >20
18+
* holds block size
19+
* holds address of buffer
20+
BUFADR BSS >2
21+
* holds first address after the buffer
22+
BUFEND BSS >2
23+
1124
*
1225
* Areas for workspace registers
1326
*

0 commit comments

Comments
 (0)