Pseudo-File Operation; Curses Filed Again - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Screen clears again. Now type:
I
This is the intermediate screen
ISCREENCOPY,2,1
I
Send intermediate screen to memory 2
ISCREENSWAP,2,3
I
Exchange memory 2 and memory 3
ISCREENCOPY,1,3
I
Restore intermediate screen from memory 3
ISCREENCOPY,1,2
I
Restore originaL screen from memory 2
Finally on this subject, the last part of Chapter 9 includes a comprehensive 'Screen
Designer' program, which incorporates the screen switching facilities provided by
the BANK MANAGER.
Part 2: Pseudo-file operation
Curses filed again ....
When regarded as a RAMdisc, the whole of the second 64K is divided into a'RAMfile'
comprising a number of fixed length records. The record length can be between 0 and
255 bytes, although 2 bytes is recommended as the minimum. Once the <RAMrecord
length> has been established, each record can be accessed by its <RAMrecord
number>. It is perfectly acceptable to write the RAMfile using one record length, and
read it back using another.
NOTE - The RAMfile must contain only data; there is NO facility for it to contain
program instructions.
As is common with random access disc filing schemes, there is the concept of 'current
record number'. This provides, in effect, a default record number, which is
particularly useful when auto-stepping through the RAMfile.
The command:
I BAN KO PEN, <RAMrecord length>
.... sets the fixed length of all records, initialises the current record number to zero,
but DOES NOT clear the memory in any way.
The command:
I BAN KW R I T E , @<returncode> , <string expression>[, <RAMrecord number>]
.... writes the <string expression> to the RAMfile.
Chapter 8 Page 4
More About the Bank Manager ....

Advertisement

Table of Contents
loading

Table of Contents

Save PDF