Scorpio News |
July–September 1988 – Volume 2. Issue 3. |
| Page 9 of 39 |
|---|
Undoubtedly one of the biggest advantages of the newer 16-bit micros over our old Z80 systems is the sheer size of the available memory. This extra memory allows more complex programs to carry out more involved operations on larger blocks of data with fewer disk accesses. The shortage of memory space can be a major drawback on 8-bit systems, but there are ways around it.
Perhaps the classic example of memory shortage is the text editor/
In this article I intend to consider only the juggling of code, since data juggling using random access files seems a more popular subject and thus there is much more written about it.
A few months back I wrote a review in this journal of a printed circuit board design package. It so happened that as I was writing the review I was in the process of developing a similar package of my own. Both packages had run into the problem of memory shortage but our approaches differed. I must confess that at least part of the reason for this was that the compiler used for the program I reviewed supported a chain command which my compiler does not have. I would argue, however, that this is fairly irrelevant since my single file solution breaks the file down into only 8 parts compared with some eleven files in the other.
The question to be asked here is not so much how the two programs go about loading the required part but why the divisions occur where they do. Specifically, of course, why do I think my version is better. The logic that led to my approach went something like this:
| Page 9 of 39 |
|---|