Before we go into more detail about how we can exercise a bit more control on PRINT and INPUT it is useful to understand a little bit about the way NextBASIC views character positioning on the screen. Due to the requirements for backwards compatibility with previous Sinclair computers, NextBASIC uses two distinct coordinate systems to keep track of where text is input or outputted. The first –or legacy– system is based on a virtual matrix that exists on screen and organises it in rigid rows and columns. The second, is more precise and allows for freely positioned columns and rows along the x and y-axes. Additionally the legacy coordinate system has been extended to allow for direct manipulation of the footer bar and status area for layers other than Layer 0, which is not normally possible in the legacy system.
In order to make a concrete distinction between the two coordinate systems, we should first discuss a little bit about the ZX Spectrum Next's display system. We will revisit this again in Chapters 15 and 16 in more detail as these chapters deal with the full graphics capabilities of the computer rather than the subset dedicated to screen character manipulation, but for now let's enumerate the screen modes in a simple fashion.
The ZX Spectrum Next has 12 distinct graphics modes broken into 4 groups –or layers– with an additional Sprite Layer which we will not be covering in this chapter . These modes are accessed using the LAYER command with the exception of Layer 3 (Character Graphics) and the higher resolution Layer 2 modes and they are the following:
Layers 2,2 as well as 2,3 together with Layer 3 are not currently available to PRINT and INPUT and therefore won't be discussed in this chapter; they are mentioned here for completeness.
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.