CHARS system variable (See Chapter 24 – System Variables) will point NextBASIC to the location of this new character set.
In the following chapter, we will be introduced to Layer 3 – the Character Graphics mode; this is a hybrid graphics mode based around the notion of a character tile, that is to say an 8 × 8 pixel matrix very much like the ones we explored above with User Defined Graphics with four very crucial differences:
Layer 3 has other uses as well and we will be discussing those in the following 3 chapters.
Imagine the space for one symbol divided up into four quarters like a Battenburg cake. Then if each quarter can be either black or white, there are 2 x 2 x 2 x 2=16 possibilities. Find them all in the character set.
Run this program:
10 INPUT a
20 PRINT CHR$ a;
30 GO TO 10
If you experiment with it, you'll find that CHR$ a is rounded to the nearest whole number; and if a is not in the range 0 to 255 then the program stops with error report:
B integer out of range.
Which of these two is the lesser?
"EVIL"
"evil"
ZX Spectrum Next User Manual, 3rd Edition (ISBN 978-1-5272-5496-1), written and illustrated by Phoebus R. Dokos. Copyright © 2020-2024 Phoebus Dokos / SpecNext Ltd. Licensed under CC BY-NC-SA 4.0. This is a transcription and can contain errors; check any doubt against the printed page.