| Notes | Address | Name | Description | |
|---|---|---|---|---|
| Hex | Dec | |||
| X117 | 5BFF | 23551 | TSTACK | Temporary stack grows down from here. Used when RAM bank 7 is switched in at top of memory while executing the editor or calling NextZXOS. It may safely go down to 5B8Ah if necessary. This guarantees at least 117 bytes of stack when NextBASIC calls NextZXOS |
| N8 | 5C00 | 23552 | KSTATE | Used in reading the keyboard |
| N1 | 5C08 | 23560 | LASTK | Stores newly pressed key |
| 1 | 5C09 | 23561 | REPDEL | Time (in 50ths of a second) that a key must be held down before it repeats. This starts off at 35, but you can POKE in other values |
| 1 | 5C0A | 23562 | REPPER | Delay (in 50ths of a second) between successive repeats of a key held down – initially 5) |
| X2 | 5C0B | 23563 | RETVARS | Address of local variables on return stack |
| N1 | 5C0D | 23565 | K_DATA | Stores 2nd byte of colour controls entered from keyboard |
| N2 | 5C0E | 23566 | TVDATA | Stores bytes of colour, AT and TAB controls going to TV |
| X38 | 5C10 | 23568 | STRMS | Addresses of channels attached to streams |
| 2 | 5C36 | 23606 | CHARS | 256 less than address of character set (which starts with space and carries on until ©). Normally in ROM, but you can set up your own in RAM and make CHARS point to it |
| 1 | 5C38 | 23608 | RASP | Length of warning buzz |
| 1 | 5C39 | 23609 | PIP | Length of keyboard click |
| 1 | 5C3A | 23610 | ERRNR | 1 less than the report code. Starts off at 255 (for -1) so PEEK 23610 gives 255 |
| X1 | 5C3B | 23611 | FLAGS | Various flags to control the NextBASIC system |
| X1 | 5C3C | 23612 | TVFLAG | Flags associated with the TV |
| X2 | 5C3D | 23613 | ERRSP | Address of item on machine stack to be used as error return |
| N2 | 5C3F | 23615 | Reserved for system use | |
| N1 | 5C41 | 23617 | MODE | Specifies K, L, C, E or G cursor. |
| 2 | 5C42 | 23618 | NEWPPC | Line to be jumped to |
| N1 | 5C44 | 23620 | Reserved for system use | |
| 2 | 5C45 | 23621 | PPC | Line number of statement currently being executed |
| 1 | 5C47 | 23623 | SUBPPC | Number within line of statement currently being executed |
| 1 | 5C48 | 23624 | BORDCR | Border colour multiplied by 8; also contains the attributes normally used for the lower half of the screen |
| 2 | 5C49 | 23625 | E_PPC | Number of current line (with program cursor) |
| X2 | 5C4B | 23627 | VARS | Address of variables |
| N2 | 5C4D | 23629 | DEST | Address of variable in assignment |
| X2 | 5C4F | 23631 | CHANS | Address of channel data |
| X2 | 5C51 | 23633 | CURCHL | Address of information currently being used for input and output |
| X2 | 5C53 | 23635 | PROG | Address of NextBASIC program |
| X2 | 5C55 | 23637 | NXTLIN | Address of next line in program |
| X2 | 5C57 | 23639 | DATADD | Address of terminator of last DATA item |
| X2 | 5C59 | 23641 | E_LINE | Address of command being typed in |
| 2 | 5C5B | 23643 | K_CUR | Address of cursor |
| X2 | 5C5D | 23645 | CH_ADD | Address of the next character to be interpreted – the character after the argument of PEEK, or the NEWLINE at the end of a POKE statement |
| 2 | 5C5F | 23647 | X_PTR | Address of the character after the ? marker |
| X2 | 5C61 | 23649 | WORKSP | Address of temporary work space |
| X2 | 5C63 | 23651 | STKBOT | Address of bottom of calculator stack |
| X2 | 5C65 | 23653 | STKEND | Address of start of spare space |
| N1 | 5C67 | 23655 | BREG | Calculator's B register |
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.