240 b$(8)="RNBQKBNR"
300 REM display board
310 FOR n=1 TO 8: FOR m=1 TO 8
320 bc=CODE b$(n,m): INK pw
325 IF bc=CODE " " THEN GO TO 350
    : REM   space
330 IF bc>CODE "Z" THEN INK pb:
     bc-=32:;lowercase for
    black
340 bc+=79:;convert to
    graphics
350 PRINT AT 5+n, 9+m; CHR$ bc
360 NEXT m: NEXT n
400 PAPER 7: INK 0
  1. The program in p. 86 has a non-apparent flaw. Can you improve on it so it becomes faster?

  2. Write a version of ATTR using a PROCedure that will work always, no matter the mode. You can peek ahead if you so wish!

  3. Using the global transparency colour, palettes and layers can you write a program that will display ALL 512 colours of the ZX Spectrum Next on screen? (It's easier than you think)


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.