This is the complete ZX Spectrum Next / NextZXOS character set, with codes in decimal and hexadecimal, the character each code represents, as well as the control codes (shaded) together with their corresponding NextBASIC tokens, if any. Tokens that are shaded are specific to the ZX Spectrum Next and cannot be found in earlier ZX Spectrum models. As the codes are also Z80N machine code instructions, the right hand columns give the corresponding assembly language mnemonics. As you are probably aware if you understand these things, certain Z80N instructions are compounds starting with CBh or EDh; the two rightmost columns give you these. Note that ED instructions that are shaded, cannot be found in regular Z80 CPUs and are only native to Z80N, the variant of the Z80 CPU, found on the ZX Spectrum Next. Control codes are marked with UW if they refer to User Windows and SW if they refer to System Windows.
| Dec | Character / Control Code / Token | Hex | Z80N Assembler | - after CB | - after ED | |
|---|---|---|---|---|---|---|
| 0 | colour: pale yellow Justify off (UW) Increase font (SW) | 00 | nop | rlc b | ||
| 1 | colour: pale yellow Justify on (UW) Decrease font (SW) | 01 | ld bc,NN | rlc c | ||
| 2 | colour: pale yellow Save Window (UW) Change font (SW) | 02 | ld (bc),a | rlc d | ||
| 3 | colour: pale yellow Restore Window (UW) Regenerate Small Fonts (SW) | 03 | inc bc | rlc e | ||
| 4 | colour: pale yellow Cursor to top left (UW)(SW) | 04 | inc b | rlc h | ||
| 5 | colour: pale yellow Cursor to bottom left (UW)(SW) | 05 | dec b | rlc l | ||
| 6 | colour: pale yellow PRINT comma | 06 | ld b,N | rlc (hl) | ||
| 7 | colour: pale yellow EDIT, Scroll (SW)(UW) | 07 | rlca | rlc a | ||
| 8 | colour: pale yellow ⇦ | 08 | ex af,af' | rrc b | ||
| 9 | colour: pale yellow ⇨ | 09 | add hl,bc | rrc c | ||
| 10 | colour: pale yellow ⇩ | 0A | ld a,(bc) | rrc d | ||
| 11 | colour: pale yellow ⇧ | 0B | dec bc | rrc e | ||
| 12 | colour: pale yellow DELETE / Backspace | 0C | inc c | rrc h | ||
| 13 | colour: pale yellow ENTER / Carriage Return PRINT apostrophe | 0D | dec c | rrc l | ||
| 14 | colour: pale yellow Clear Window (UW)(SW) | 0E | ld c,N | rrc (hl) | ||
| 15 | colour: pale yellow Wash Window (UW)(SW) | 0F | rrca | rrc a | ||
| 16 | colour: pale yellow INK | 10 | djnz DIS | rl b | ||
| 17 | colour: pale yellow PAPER | 11 | ld de,NN | rl c | ||
| 18 | colour: pale yellow FLASH | 12 | ld (de),a | rl d | ||
| 19 | colour: pale yellow BRIGHT | 13 | inc de | rl e | ||
| 20 | colour: pale yellow INVERSE | 14 | inc d | rl h | ||
| 21 | colour: pale yellow OVER | 15 | dec d | rl l | ||
| 22 | colour: pale yellow AT | 16 | ld d,N | rl (hl) | ||
| 23 | colour: pale yellow TAB | 17 | rla | rl a | ||
| 24 | colour: pale yellow ATTR (UW)(SW) | 18 | jr DIS | rr b | ||
| 25 | colour: pale yellow POINT (UW)(SW) | 19 | add hl,de | rr c | ||
| 26 | colour: pale yellow AUTO PAUSE (UW)(SW) | 1A | ld a,(de) | rr d | ||
| 27 | colour: pale yellow Fill window with character(UW)(SW) | 1B | dec de | rr e | ||
| 28 | colour: pale yellow Set Double Width (UW)(SW) | 1C | inc e | rr h | ||
| 29 | colour: pale yellow Set Font Height (UW) | 1D | dec e | rr l | ||
| 30 | colour: pale yellow Justification mode (UW) Set Font Width (SW) | 1E | ld e,N | rr (hl) | ||
| 31 | colour: pale yellow Permit embed. codes in justif. mode (UW) Redefine Character Set (SW) | 1F | rra | rr a | ||
| 32 | Space | 20 | jr nz, DIS | sla b | ||
| 33 | ! | 21 | ld hl,NN | sla c | ||
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.