Zx Spectrum Next: Memory

In Zx Spectrum Next there is a lot of RAM. The RAM is divided into 16Kb banks with 256K reserved for ROMs and DivMMC interface, so in practice we have 48 banks in Next 1MB version or 112 banks in Next 2MB version mapped as follow:

Bank #Description
0..7same as standard Spectrum 128K
8..47available on all Next
48..111available only on Next 2MB version

NextZXOS uses the first 9 banks. Banks starting at 9 are always available to the programmer

Bank #Description
0standard Spectrum 48K (addr. 49152..65535)
1RAMdisk
2standard Spectrum 48K (addr. 32768..49151)
3RAMdisk
4RAMdisk
5standard Spectrum 48K (addr. 16384..32767)
6RAMdisk
7Workspace and data structures
8additional screen data on some video modes
Source: https://gitlab.com/thesmog358/tbblue/-/blob/master/docs/nextzxos/NextBASIC_New_Commands_and_Features.pdf

Some new Basic commands

  • BANK NEW var
  • BANK n CLEAR
  • BANK n ERASE
  • BANK n ERASE value
  • BANK n ERASE offset,len
  • BANK n ERASE offset,len,value
    • Fill len byte in bank n with value starting at offset