Re: Connect M100 to M200
Ron Wiesen <
ronw@...>
2006-12-01 12:25:20 GMT
Hello :
> If anybody has any comments or suggestions,
> I'm always willing to listen and learn.
Offhand, I offer two suggestions. #1 is trivial; #2 is involved.
#1. Phrase CLOSE1,2 can be simplified as CLOSE. CLOSE closes all Outer
File Buffers that are open, which in this case amounts to two Outer File
Buffers.
#2. Preserve the MAXFILES assignment so that is the same afterwards as it
is initially. Otherwise the before/after difference in avaliable Free
memory is perplexing and "unfriendly" to users. For example, by cold start
default the MAXFILES assignment is 1, after conclusion of this BASIC program
the MAXFILES assignment is 2 and consequently this would cause a
before/after difference in avaliable Free memory of 267 (volume consumed by
one Outer File Buffer), in addition to the expected (based on file transfer
activity) difference in avaliable Free memory.
To preserve the MAXFILES assignment, a 1-cell hidey-hole must be used and
two subroutines should be added: a "save beforehand" subroutine to save the
initial MAXFILES assignment as content within the hidey-hole cell, and a
"restore afterwards" subroutine to reference content of the hidey-hole cell
and restore the original MAXFILES assignment.
Arbitrarily, say that the line numbers of the added subroutines,
respectively are: 998 for the "save beforehand" subroutine, and 999 for the
"restore afterwards" subroutine. Given the current construct of the BASIC
program, four lines must be modified, as shown below, in order to
(Continue reading)