Loading The Screen Back; Summary Of Amsdos External Commands - AMSTRAD cpc 6128 User Instruction

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

Advertisement

Loading the screen back
The following example is a general purpose screen dump displaying program, using a
parameter file to control its action. Note how variables are I N PUT from the data file,
with the EO F function allowing automatic variation in the size of the file. It is
important that the screen dump displayed by this program was saved with the screen
in a known position in memory, otherwise the result will be 'skewed'. This is ensured
by the saving program executing a MOD E command and thereafter being careful not
to cause the screen to scroll.
10 DIM coLour(15): REM Provision for 16 coLours
20 OPENIN "param.dat"
30 INPUT #9, fi Lename$,screenmode
40 i =0
50 WHILE NOT EOF
60
INPUT #9,coLour(i)
70 INK i,coLour(i)
80 i=i+1
90 WEND
100 CLOSEIN
110 MODE screenmode:BORDER 0
120 LOAD fi Lename$
run
Summary of AMSDOS external commands
lA
lA
COMMAND: Set default drive to Drive A. Equivalent to
ID
R I V
E
with parameter
A.
(The main drive within the computer is Drive A.)
IB
IB
COMMAND: Set default drive to Drive B. Equivalent to
I
D R I V E with parameter B.
(The main drive within the computer is Drive A.)
Chapter 5 Page 8
AMSDOS and CP/M

Advertisement

Table of Contents
loading

Table of Contents

Save PDF