EasyManuals Logo
Home>Sinclair>Desktop>ZX Spectrum

Sinclair ZX Spectrum User Manual

Sinclair ZX Spectrum
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #65 background imageLoading...
Page #65 background image
Chapter 7
63
as mentioned in Chapter 4 the attribute files of the new display modes overlap with
the BASIC environment’s system variables and program listing area. This problem can
be partially overcome by shifting the BASIC program up in memory until it is beyond
the extent of the new attribute files, thereby creating a gap between the system
variables and the BASIC program area. This can be done by adjusting the Spectrum’s
system variables to create a region between the Channel Information area and the
BASIC program area (much in the same way that the ZX Interface 1 inserts its new
system variables after the standard ones). The region could be created upon the first
invocation of the external ROM, or once a new attribute mode has been selected. The
size of the region would need to be large enough for the selected attribute mode, and
could be dynamically adjusted when changing to a different attribute mode. An
alternate approach would be to simply create a region large enough to accommodate
all of the new attribute modes, but this would result in a less efficient use of memory.
Shifting the BASIC program would allow most of the new attribute modes to be
supported, except for all row and single line modes that use double byte colour since
their attribute files overlap the Spectrum’s system variables. The size of the region
required to shift the BASIC program area above the attributes file for each attribute
mode is shown in the following table.
Attribute mode
Region size
Lowest address of
BASIC area
Row mode, basic colours, single byte
$0000
$5D05
Row mode, basic colours, double byte
Mode not supported
Row mode, extra colours, single byte
$0000
$5D05
Row mode, extra colours, double byte
Mode not supported
Quad line mode, basic colours, single byte
$08FB
$6600
Quad line mode, basic colours, double byte
$10FB
$6E00
Quad line mode, extra colours, single byte
$08FB
$6600
Quad line mode, extra colours, double byte
$10FB
$6E00
Dual line mode, basic colours, single byte
$0EFB
$6C00
Dual line mode, basic colours, double byte
$1EFB
$7C00
Dual line mode, extra colours, single byte
$0EFB
$6C00
Dual line mode, extra colours, double byte
$1EFB
$7C00
Single line mode, basic colours, single byte
$1AFB
$7800
Single line mode, basic colours, double byte
Mode not supported
Single line mode, extra colours, single byte
$1AFB
$7800
Single line mode, extra colours, double byte
Mode not supported
Shifted BASIC area required for each attribute mode

Table of Contents

Other manuals for Sinclair ZX Spectrum

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair ZX Spectrum and is the answer not in the manual?

Sinclair ZX Spectrum Specifications

General IconGeneral
BrandSinclair
ModelZX Spectrum
CategoryDesktop
LanguageEnglish

Related product manuals