NotesAddressNameDescription
HexDec
X1175BFF23551TSTACKTemporary 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
N85C0023552KSTATEUsed in reading the keyboard
N15C0823560LASTKStores newly pressed key
15C0923561REPDELTime (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
15C0A23562REPPERDelay (in 50ths of a second) between successive repeats of a key held down – initially 5)
X25C0B23563RETVARSAddress of local variables on return stack
N15C0D23565K_DATAStores 2nd byte of colour controls entered from keyboard
N25C0E23566TVDATAStores bytes of colour, AT and TAB controls going to TV
X385C1023568STRMSAddresses of channels attached to streams
25C3623606CHARS256 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
15C3823608RASPLength of warning buzz
15C3923609PIPLength of keyboard click
15C3A23610ERRNR1 less than the report code. Starts off at 255 (for -1) so PEEK 23610 gives 255
X15C3B23611FLAGSVarious flags to control the NextBASIC system
X15C3C23612TVFLAGFlags associated with the TV
X25C3D23613ERRSPAddress of item on machine stack to be used as error return
N25C3F23615Reserved for system use
N15C4123617MODESpecifies K, L, C, E or G cursor.
25C4223618NEWPPCLine to be jumped to
N15C4423620Reserved for system use
25C4523621PPCLine number of statement currently being executed
15C4723623SUBPPCNumber within line of statement currently being executed
15C4823624BORDCRBorder colour multiplied by 8; also contains the attributes normally used for the lower half of the screen
25C4923625E_PPCNumber of current line (with program cursor)
X25C4B23627VARSAddress of variables
N25C4D23629DESTAddress of variable in assignment
X25C4F23631CHANSAddress of channel data
X25C5123633CURCHLAddress of information currently being used for input and output
X25C5323635PROGAddress of NextBASIC program
X25C5523637NXTLINAddress of next line in program
X25C5723639DATADDAddress of terminator of last DATA item
X25C5923641E_LINEAddress of command being typed in
25C5B23643K_CURAddress of cursor
X25C5D23645CH_ADDAddress of the next character to be interpreted – the character after the argument of PEEK, or the NEWLINE at the end of a POKE statement
25C5F23647X_PTRAddress of the character after the ? marker
X25C6123649WORKSPAddress of temporary work space
X25C6323651STKBOTAddress of bottom of calculator stack
X25C6523653STKENDAddress of start of spare space
N15C6723655BREGCalculator'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.