v2.10: 2026-05-09
=================
* If boot process requests, AUTOEXEC.BAS is loaded from root of D: drive
  instead of C:/nextzxos/
* Persistent Browser data (current directory, location, view options etc) moved
  to DivMMC RAM to reduce likelihood of overwriting by native Next software.
* Added multi-parameter variation of OUT command, to output multiple values
  consecutively to the same port (issue 121):
    OUT port,n1,n2,n3,....
* Added multi-parameter variation of REG command, to output multiple values
  consecutively to the same register (issue 121):
    REG reg,n1,n2,n3,....
* Added new optional parameter to TILE BANK command, to set transparency index
  for the tileset specified:
    TILE BANK n OVER transp
  If the OVER parameter is not present, global transparency is used as before.
* Added new command to set sprite transparency index: SPRITE OVER n
  When this command is used, bit 4 of %CODE options is automatically set.
* Added new %CODE option:
    if bit 4=0, PALETTE OVER and PALETTE CLEAR control sprite transparency index
    if bit 4=1, SPRITE OVER  and SPRITE CLEAR control sprite transparency index
* Added new %CODE option (as fix for issue 59):
    if bit 3=0, BEEP/PLAY behave as standard 48K/128K Spectrum at higher
                clock speeds (ie pitch/duration alter, as currently)
    if bit 3=1, BEEP/PLAY produce the same pitch/duration regardless of speed
* Optimised POINTERS routine, reducing overhead when allocating/reclaiming
  space in BASIC regions.
* The standard 48K ROM entry points for the following graphics primitives
  have now been made layer-aware and will operate on the current layer:
        PLOT ($22dc)
        POINT_SUB ($22cb)
        CIRCLE_1 ($232d)
        DRAW_LINE ($24b7)
  Entry is also possible into earlier parts of the CIRCLE and DRAW commands.
* Fix for issue 79: SPRITE OVER didn't detect collisions for relative sprites
  with negative coordinates (partly off-screen to top or left).
* Fix for issues 87 & 129: file read/writes between +3DOS files and banks 64+
  were not correctly performed for transfer lengths that weren't exact multiples
  of 128 bytes.
* Fix for issue 103: Editor unable to cursor-right to append text if end of
  BASIC line exactly reached right-hand screen edge.
* Fix for issues 110 & 134: crash occurred if error report while waiting for
  control code parameter.
* Fix for issue 119: Retokenisation stripped spaces around shift/equality tokens.
* Fix for issue 122: RUN @label caused a crash.
* Fix for issue 123: error handlers were masked by local variables (or PROC
  parameters).
* Fix for issue 125: .TXT2BAS -a now outputs lines with bad line numbers or
  lengths similarly to lines with syntax errors.
* Fix for issue 126: ARC bit was inverted on +3DOS files.
* Fix for issue 131: LINE NEW caused a hang if step>start.
* Fix for issue 132: SPRITE CONTINUE s1 [TO s2] command was not accepted as
  valid syntax.
* Fix for issue 135: Browser failed to load files from selected drive if "T:"
  was previously set as default.
* Fixes for issue 138: IDE_BASIC might not work correctly if calling PROCs/FNs/
  subroutines etc, or if BASIC workspace regions changed (eg variables created
  or resized).
* Fix for issue 139: Browser crashed if remount performed during copy/move
  (remount now cancels pending copy/move).
* Fix for issue 141: Loops on (or returns into) a banked line that had been
  invoked by a label would fail (usually with nonsense in BASIC).
* Fix for issue 142: some disk operations could overwrite system variables
  beneath TSTACK due to stack overflow.
* Fix for issue 143: BIOS v0.98: CP/M BIOSEXT module always returned "not
  ready" when querying device status.
* Fix for issue 144: NMI mouse button swap option did not work, as it had not
  been updated when this setting moved from NR 0x0a bit 2-->3 (core 3.01.07).
* Fix for issue 145: LOAD/SAVE..LAYER should use layer2 shadow buffer rather
  than frontbuffer for consistency with other commands accessing layer2.
* Fix for issue 146: workaround for Xeno Brigade (v0.93) bug that left
  (STKEND) < (STKBOT), causing issues with the optimised POINTERS routine.
* Default text editor changed from .QE to .ZED


v2.09: 2024-04-16
=================
* Added experimental support for double-sided .DSK files (Sword of Ianna).
* Added support for legacy DEF FN functions accessing DEFADD, controlled by
  %CODE bit 2 (addresses issue 94).
* Added automatic line numbering, via menu option and LINE NEW command.
* Added option to disable writes to metadata cache, controlled by %FORMAT bit 2.
* Added BANK n LINE x,y REM command variant to remove all REM/; statements and
  blank lines during copy to bank.
* Added block renumber command variant: LINE m,n TO start,step.
* TAP/TZX/SNA/Z80/tape loaders now allow unassigned buttons in keyjoy
  configuration by pressing break.
* TZX/TAP loaders now use .piput to upload files to the Pi if NextPi 1.91+ is
  present; otherwise, .pisend continues to be used.
* TZX loader replaces NextPi's tape2wav with a version linked with v1.5.0 of
  libspectrum, in order to support some previously-failing TZX files (those
  with raw/direct recording blocks). Note: This workaround is only available
  for NextPi v1.92.
* TZX/TAP loaders adjust tape2wav sample-rate (instead of play) for improved
  Pi loading of OTLA/k7zx files.
* Added raw joystick i/o option to all loaders, allowing Codemasters CD games
  pack to be used etc.
* Added vector to sprite engine data for drivers/system extensions.
* Fix for spurious DISK_STRMEND error return (properly handle R1b responses).
* Filesystem init improvements, to fix "Error reading enAltZX.rom" errors:
    + properly deal with data error tokens in block reads
    + reject invalid partition entries in Windows-formatted single-volume cards
    + more helpful "Drive C: not found" error now generated if init fails
* Fix for issue 91: allow unstacking of nested floating-point FOR..NEXT loops.
* Fix for issue 93: NEWPPC/NSPPC were no longer used following parser and branch
  optimisations. Added special-case for POKE to allow older s/w to continue
  using this method. If a USR routine alters NSPPC, it must be re-POKEd as a
  workaround (this avoids incurring a general performance hit).
* Fix for issue 96: DIM function accidentally altered variable dest type.
* Fix for issue 97: "Clear" menu function caused a crash on next BASIC command.
* Fix for long IF/ELSE search; this incorrectly evaluated conditions of inner IFs
  whilst checking if they were single-line IF..THEN.. and could be ignored.
* Fix for SAVE..LINE @label writing an invalid header in the BASIC program.
* Fix for FPGA issue 22: syntax errors in FN parameters caused a crash.
* Fix for FPGA issue 21: integer accumulation incorrectly used FP evaluator.
* Fix for ^= and ^|= accumulation operations.
* Fix to restore interpretation pointer after failed READ (or DATA function
  returning 0), causing issues if final line in program wasn't DATA statement.
* Fix line/label caching to ignore everything after REM/; (incorrect cache
  generation on line 9865 of "The Valley" due to UDG matching DEFPROC token).
* Fix unexpected errors with RND in calculated GOTO/GOSUBs ("The Valley").
* Fix for issue 87: unable to successfully transfer +3DOS files to/from bank>63.
* Fix for string FNs returning garbage if returning unmodified parameter.
* Fix for LOCAL initialisers if the expression changed A' register.
* Fix for issue 98: F_FTRUNCATE returned incorrect error status information.
* Fix for BANK..LINE rejecting lines of length >=256 instead of >256.
* Fix for "Nonsense in BASIC" errors if loading banked data from within a bank.
* Fix for crash when empty string a source in multiple assignment (eg a$,b$="").
* Fix TAP loading when entry Fz=1 (leading block type to be treated as data).
* Fix TAP loading exit values of IX/BC if only partial block loaded.
* Fix "FOR without NEXT" if no iterations needed with local fp loop variable.
* Fix renumber to deal correctly with labels and EXIT statements.
* Fix for persistent "N statement lost" errors in banked code.
* Fix for colons in DATA statement strings being treated as statement end.
* Fix errors with direct command string INPUTs and crashes with string INPUTs
  to local string variables.
* Fix for integer LOCALs masking error handlers higher in the return stack.
* Fix to allow %CODE/%FORMAT as destinations in accumulation assignments.
* Fix for Calculator exiting to NextBASIC mode after viewing its guide.
* Fix to avoid unnecessary banked line recaching.
* Prevent MERGE causing "statement lost" error on return to direct command.
* Made IDE_BASIC properly re-entrant (fixes .fsize used in autoexec.bas).
* Moved CACHEBNK/RETVARS to protect from LOADs over system variables (partial
  fix for Tarot Master +3).
* Fix for off-by-1 bug in line/label caching algorithm, causing crash when
  incorrectly attempting to cache a banked section with no free bytes.
* Fix for BREAK not being detected at scroll prompts in windows or non-LAYER 0
  modes.
* Fix for crash during rename in Browser if the filename length exceeded the
  available edit space.
* Fix for CLS on layer1/2 failing to set current stream, leading to undefined
  behaviour if the last-used stream had been closed.
* Fix to allow (c) char to be used in filenames, as required by PAW+3.
* Fix for issue 114: >> used within a signed integer expression incorrectly
  used a logical shift; now uses an arithmetic shift.
* Fix for issue 115: 0<<1 produced a small non-zero value instead of zero.
* Fix for >> on very small floating-point values, which wrapped to integer
  values instead of being clamped to zero.


v2.08: 2023-06-03
=================
* Rewrite of PROCedure implementation, removing most previous limitations
  and fixing some long-standing bugs. Arrays can now be passed, and non-integer
  parameters can optionally be passed by REFerence.
* DATA used as a parameter in DEFPROC allows further PROC arguments to be READ.
* User defined FNs are now implemented in the same way as PROCedures, with
  the same parameter passing. They can now have names of any length.
* PRIVATE variables (numeric only) implemented for use in subroutines and
  procedures; like LOCALs but with persistent storage.
* Default values can be provided for LOCALs, PRIVATEs and DEFPROC/DEFFN parameters.
* Labels (starting with @) can now be placed as a statement in any line and
  used as the target for GOTO/GOSUB/LIST/RESTORE/SAVE..LINE etc.
* EXIT command added to cleanly exit from REPEAT or FOR loops. Loops can also
  be cleanly exited with RETURN or ENDPROC.
* Long-form IF..ELSE..ENDIF added, allowing properly-nested conditionals.
* ON selection structure added.
* Functions previously only available in integer expressions now added to the
  standard expression evaluator:
        DPEEK addr
        BANK n PEEK addr
        REG n
        SPRITE s
        SPRITE CONTINUE s
        SPRITE AT(s,c)
        SPRITE OVER(s, start [TO end] [, overlapXY [, overlapY]])
* New functions added to the standard expression evaluator:
        RND(n)                                  random integer
        DATA                                    type of next item to READ
        ERROR                                   error number
        ERROR(n)                                error number/line/stmt/bank
        ERROR$                                  error text
        TIME                                    framecounter value
        TIME$                                   date/time
        POINT #n                                stream pointer
        NEXT #n                                 character from stream
        DIM #n                                  size of stream
        DIM(arrayname[$]() [, dimension])       number/size of array dimensions
        STR$(n, base [, places])                fixed-point string representation
        IN(source$, match$ [, startpos[, wild$]])       substring search
        INPUT n                                         input controller state
        USR$ addr                                       m/code routine calls
        BANK n USR$ offset
        USR(addr, param1 [, param2 [, param3...]])
        USR$(addr, param1 [, param2 [, param3...]])
        BANK n USR(addr, param1 [, param2 [, param3...]])
        BANK n USR$(addr, param1 [, param2 [, param3...]])
* New operators added to the standard expression evaluator:
        @n                                      binary number n (same as BIN)
        $n                                      hex number n
        !n                                      bitwise NOT
        n>>m                                    shift right
        n<<m                                    shift left
        n|m                                     bitwise OR
        n&m                                     bitwise AND
        n^|m                                    bitwise XOR
        n MOD m                                 modulus
        n?(expr0,expr1,expr2....)               expression selected by n
        {a$}                                    tokenise
        a$*n                                    string replication
        a$[modifierlist]                modifiers: +    make upper-case
                                                   -    make lower-case
                                                   <    strip leading spaces
                                                   >    strip trailing spaces
                                                   ~    strip bit-7 terminator
                                                   ^    add bit-7 terminator
                                                   (f$,r$)      replace chars
* Integer sub-expressions can now be used in the standard expression evaluator
  by enclosing them within parentheses.
* New functions/operators added to the integer expression evaluator:
        n^|m                            bitwise XOR (synonym of n^m)
        INPUT n
* Miscellaneous new commands added:
        TIME                            reset the framecounter
        LOAD/SAVE/VERIFY f$ INT         load/save/verify integer vars & arrays
        LOAD/SAVE/VERIFY f$ INPUT       load/save/verify "keyboard joystick"
* Multiple variables (separated by commas) can now be assigned with the same
  value or multiple different values (separated by commas) in a single statment.
* Accumulation assignments (+= -= *= /= ^= &= |= ^|= <<= >>= MOD=) are also
  supported.
* Strings, arrays and loop index variables can now all have long names
  (integer variables and arrays are still limited to single-letter names).
* INPUT command now traps all errors and can only be terminated with a
  valid entry or BREAK (unless disabled).
* %CODE pseudo-variable has the following new setting:
        bit 1:  if set, the BREAK key is disabled
* New .RET dot command to display contents of the return stack.
* Performance enhancements, including caching of DEF FN/DEFPROC/label and
  line number locations.


v2.07l: 2022-10-31
==================
* New "Tools" submenu for setting up real-time clock, WiFi module and updating
  your SD card's distribution.
* Extended UDGs are now shown consistently in the editor, showing in the current
  scheme's graphics colour (or inverted in hi-res modes):
    codes 144..169 (including standard UDGs): A..Z
    codes 170..177: 1..8
    codes 178..203: a..z
    codes 204..229: a..z, underlined
    codes 230..255: A..Z, underlined (these correspond to K-mode keywords)
* Extended UDGs can all now be entered directly from the keyboard. The keys
  now available in Graphics mode are:
    Key                 Characters generated                    ASCII codes
    ---                 --------------------                    -----------
    9 or GRAPH:         exits Graphics mode                        -
    0 or DELETE:        deletes character to the left              -
    1..8                block character graphics shown on key   128-135
    CAPS + 1..8         inverse block character graphics        136-143
    A..Z                UDGs A..Z                               144-169
    SYMBOL + 1..8       extended UDGs                           170-177
    SYMBOL + A..Z       extended UDGs                           178-203
    DRIVE + A..Z        extended UDGs                           204-229
    CAPS + A..Z         extended UDGs                           230-255
* Tokens can all now be entered directly from the keyboard. Note they will
  show as graphics characters until ENTER is pressed and the line is accepted.
  Tokens above a key are entered in extended mode.
  eg: EXTEND,I gives the code for CODE
      EXTEND,SYMBOL-SHIFT+I gives the code for IN
  Tokens on the 2nd row of a key are entered with SYMBOL-SHIFT in normal mode.
  eg: SYMBOL-SHIFT+I gives the code for AT
  Tokens on the top row of a key must be entered in graphics mode as above.
  eg: GRAPH,CAPS-SHIFT+I gives the code for INPUT
* Added "Token keys" edit menu option, allowing switch between default where
  some extended mode symbols are available with just SYMBOL SHIFT (eg ~ for
  SYMBOL SHIFT+A) and alternative mode allowing the token to be entered
  (eg STOP token for SYMBOL SHIFT+A).
  This can also be changed by setting/clearing bit 7 of FLAGS2 system variable,
  or by pressing EXTEND,1.
* Added "String tokens" edit menu option, which shows characters in strings
  as tokens rather than graphics characters.
  This can also be changed by setting/clearing bit 7 of TV_FLAG system variable,
  or by pressing EXTEND,2.
* INPUT (and other places using the same line input routine) now supports
  graphics and token entry, as well as the following editing keys (mostly
  in common with the NextBASIC editor):
    * CURSOR LEFT/RIGHT/UP/DOWN         Move cursor
    * EXTEND,CURSOR LEFT                Move to start of input
    * EXTEND,CURSOR RIGHT               Move to end of input
    * TRUE VIDEO                        Move left one word
    * INVERSE VIDEO                     Move right one word
    * DELETE                            Delete character
    * EXTEND,DELETE                     Delete character right
    * EXTEND,TRUE VIDEO                 Delete word left
    * EXTEND,INVERSE VIDEO              Delete word right
    * EXTEND,9                          Delete to start of input
    * EXTEND,0                          Delete to end of input
    * EDIT                              Delete entire input
    * EXTEND,1                          Toggle symbol/token input for ASDFGYUQ
* The USR "X" function for returning the address of a UDG now also works for
  all extended UDGs (enterable from the keyboard) up to 255. An appropriate
  CLEAR and DPOKE of the UDG system variable must first be performed to
  reserve space for the extended UDGs required, eg:
    CLEAR 65535-(100*8):DPOKE 23675,65536-(100*8)
    will allow the first 100 UDGs (codes 144-243) to be used.
* Fixed .CLEAR to additionally restore the layer 2 buffers to their default
  allocations (banks 9-11).
* Fix for intermittent spurious "file exists" errors when attempting to move
  or rename a file.
* Fix crash if stream 2 is redirected when ERROR is executed (from issue 75).
* Fix for use of .BROWSE overriding current return to editor/menu/browser
  status.
* Fix for issue in Browser file sorting when a filter was set, which could
  cause the sort to fail and drop back to an unsorted list.
* Fix for "Nonsense in BASIC" errors incorrectly being generated if READing
  to an integer variable & the DATA statement was followed by other statements.
* Fix for crash in the editor if out-of-memory situation occured during the
  tokenisation process.
* Added workaround for faulty ISRs and joystick selection issues in the
  Software Amusements "Gold Compilation" menu-driven compilation. This is
  applied the first time Menu.sna or Menu.tap is run (thereafter, games will
  work correctly from these files or Menu.snx).
* Fix for DISK_FILEMAP hook returning wrong value (off by 1) for DE if no
  entries were returned.


v2.07k: 2022-07-06
==================
* Fix for issue 72: Browser could not follow links to files/directories on
  other drives.
* Fix for %FORMAT settings being cleared again immediately after processing
  autoexec.bas.


v2.07j: 2022-06-25
==================
* Fix for "end of file"/"tape loading error" when attempting to load a CODE
  or SCREEN$ file where the file is shorter than the requested size. Standard
  Spectrum behaviour is to load the entire file without any error.
* Fix for issue 31: Spectrum +3 FORMAT LINE/LPRINT commands are now silently
  accepted, aiding compatibility with +3 software such as Artist II.
* Fix for issue 53: BANK..PROC commands containing colon (:) in string literal
  parameters were failing with "Parameter error".
* Fix for issue 71: PROC commands with 8 parameters were failing with
  "Parameter error".


v2.07i: 2022-06-20
==================
* Fix to reset persistent paths if they don't exist after a drive (re)mount.
* Fix for RST $20 to preserve value of HL when exiting dot command.
* Improve performance of Browser on directories containing many extensionless
  files (eg c:/dot) if colour scheme doesn't distinguish executable files in
  the file list.


v2.07h: 2022-06-18
==================
* Added "Manual entry" option for POKEs in the NMI menu, so POKEs listed in
  magazines can be more easily entered (issue 62).
* Moved Interface 2 ROM cartridge options to a separate sub-menu. The default
  options now set the Next's joystick ports to Sinclair1/2 so standard ROM
  cartridge games can be played with them. Alternative options enable the
  Interface 2 ports as Sinclair1/2 and set the Next's ports to MD1/2.
* Implemented pointer operations for window channels (and mode windows), so
  RETURN #n TO var/DIM #n TO var/GOTO #n,pos can be used. In all cases, the
  x pos/size is in the low 16 bits and the y pos/size is in the high 16 bits.
  Positions/sizes are in pixels. Therefore GOTO #n,y*65536+x is equivalent
  to PRINT #n;POINT x,y;
* Added .METADATA dot command for handling file metadata in filenames or
  metadata cache (c:/nextzxos/metadata).
* TAP/TZX/SNA/Z80 loaders now save settings to metadata cache by default.
* Added %FORMAT special variable to control optional filesystem behaviour.
  + bit 0 suppresses automatic .BAK file creation (issue 68)
  + bit 1 causes loaders to save settings to filename by default
* Fix for issues 64/67: corruption of BASIC program on exit to menu if editor
  in Timex hi-res mode.
* Fix for issue 65: BANK..LIST should not change current NextBASIC editor line.
* Fix for issue 66: guides from menu could be obscured by layer 2 screen.
* Fix for issue 69: joystick ports are now configured as MD1 at reset so they
  work in menus/Browser.
* Fix for browser.cfg not being parsed correctly if line-endings were not CRLF.
* Fix scroll routine for compatibility with PAW+3.
* Fix to prevent directory being moved inside itself.
* Fixed F_SEEK to correctly clamp to file size if pointer>size.
* Fixed DISK_FILEMAP hook to generate error if filemap buffer < $4000.
* Fixed "Bad filename" error generation on +3DOS filesystems.
* Fix for corrupted byte at 0x8000 or 0xe000 if .INSTALL failed (eg driver
  already installed).
* Fixed .MKDATA/.MKSWAP to place filemap buffer > $4000.
* Fixed .MAKERUN to properly deal with (c) symbol in browser.cfg.
* Ensure bit 7 of nextreg 2 is always preserved by NextZXOS so that ESP can be
  held in reset even when performing soft resets/starting ROM cartridges etc.
* Documentation (pdf/odt) updates.
* Guide updates.


v2.07g: 2022-03-30
==================
* Fixed snapshot loading bug which led to NMI options using the Browser
  hanging with "Processing" if a snapshot was loaded after power-on before
  the NMI menu had been entered normally (uninitialised data issue).


v2.07f: 2022-03-14
==================
* Fixed save/restore of transparency, sprite and palette control registers
  when applying editor/Browser colour schemes.
* Fixed ability of dot commands to trap some "out of memory" errors, leaving
  the system incorrectly thinking they were still running.
* Revised .INSTALL and .UNINSTALL to allocate a bank for their workspace
  rather than taking memory from BASIC. This allows them to be run from larger
  programs.


v2.07e: 2022-03-11
==================
* Fixed SPRITE command to allow relative coordinates in range -128 to +127
  (previously, only -127 to +127 was permitted).


v2.07d: 2022-03-08
==================
* Fixed off-by-1 error causing overwrite of byte in user memory from F_GETCWD
  hook. This fixes issues in DoYouLove demo and NextDAW.


v2.07c: 2022-03-07
==================
* Fixed F_GETCWD hook, which would often incorrectly return a "not found" or
  "bad filename" error if trying to obtain working directory for a drive
  (rather than for a supplied filespec).


v2.07b: 2022-03-06
==================
* Added .CLEAR dot command to release all allocated resources.
* Bugfixes:
  + Fix for crash if a tape loading error occurred during a LOAD..BANK command
    from cassette or .TAP.
  + Fix for crash in renumber if certain dot commands had previously been run
    (due to stack-in-DivMMC overwriting part of BASIC overlay).
  + Fix for Tape Loader failing to start if "welcome" program has just been
    run.
  + Fixed short name generation for long filenames containing spaces that
    would otherwise still fit in 8.3 (eg, "eyes out.bas" would incorrectly
    generate a short name of EYESOUT.BAS; it now generates EYESOU~1.BAS).
  + Fixed error-reporting from DISK_FILEMAP for cases where SD no longer
    accessible.
* Optimisations:
  + Improved performance of copies from system DivMMC memory to dot command
    memory.
  + Implemented built-in .$ command functionality to avoid need to load the
    .$ dot command as well as the target dot command.


v2.07a: 2022-02-26
==================
* Bugfixes:
  + Dot commands can now be stored in c:/dot or c:/bin, with the c:/dot
    version being used in preference. This allows dot commands created with
    the esxDOS .LAUNCHER command to be found.
  + Implemented M_AUTOLOAD esxDOS hook code, allowing dot commands created
    with .LAUNCHER and similar (eg .SPECASM) to successfully run.
  + Change dot commands to use same DivMMC RAM bank as esxDOS v0.8.9, since
    .zxzvm expects this.
  + Allowed LOAD * etc commands (with same behaviour as LOAD etc) to allow
    some esxDOS BASIC loaders to run unchanged (fixes .zxzvm).
  + Added workarounds to allow .GRAMON to run successfully.
  + Fixed Browser to recognise BASIC and SCREEN$ files without a .BAS/.SCR
    extension, by interrogating +3DOS header information.
  + Fix for colour scheme issues when a used colour matched the current
    global transparency colour.
  + Fixed editor to ignore line 0 if present in a program, as this could
    previously cause a hang.
  + Fixed encoding of CODE mode in .TAP file metadata.
* Minor documentation updates.


v2.07: 2022-02-19
=================
* Bugfixes:
  + Fix for issue in tokeniser where keywords would be detected 9 chars into
    an identifier (so variable names such as A23456789IN couldn't be entered).
  + Fix LIST n to set editor listing to last line of program if n > last line.
  + Fixed FAT short name matching algorithm to ensure any non-ASCII characters
    present in short names are properly supported.
  + Files/directories named "." or ".." can no longer be created in the root
    of FAT drives.
  + Fix for long-standing +3DOS bug (present in +3) which allowed read-only
    files to be opened in update mode.
  + Fixed %RND 0 to always return 0 (broken by NextZXOS v2.06J).
  + Fix for issue where renumber could attempt to "renumber" statements such
    as SPRITE RUN if they directly followed an ELSE keyword.
  + Fix for crash when BANK..ERASE used with a length of 1.

* Legacy software compatibility improvements:
  + .TAP/.TZX loaders now remember and use the last chosen settings, so ENTER
    in the Browser starts loading the game immediately. Settings can be
    modified by holding SYMBOL-SHIFT when pressing ENTER.
  + Specific joystick preferences (including user-defined "keyboard joysticks")
    can now be set for each game, and are saved with the .TAP/.TZX settings.
  + Switched to automatic DivMMC paging using new core 3.01.10 features, allowing
    completely unpatched ROMs when running 48K/128K software.
  + NMI and snapshot loading take advantage of new core 3.01.10 features to
    avoid any bytes on the stack being overwritten.
  + Snapshots are now saved in .Z80 format instead of .SNA. This is better at
    capturing machine state.
  + New 3.01.10 core feature used to trap all +3 FDC i/o accesses.
  + Allow filenames to include - $ ( ) & ! which are used by some CP/M software
    even though they are marked as not allowed in CP/M documentation.
  + Fix for intermittent crashes loading TAP/TZX files in 128K mode, due to
    bug in original 128K Spectrum ROM which enables interrupts too early.
  + Various minor legacy software compatibility improvements.

* NMI enhancements:
  + ZX80/ZX81 snapshots can now be saved and re-loaded (in .Z80 format).
  + Added new nextregs plus core & os version info to the Debug Status page.
  + Added support for redefining new "keyboard joysticks" in Settings.

* Menu system enhancements:
  + Added 128K BASIC, ZX80 BASIC and ZX81 BASIC options to the main menu.
  + Added single-key shortcuts throughout NextZXOS menus (can be made more
    visible by pressing EXTEND).
  + Added guides for NextZXOS, NextBASIC, Command Line and Calculator,
    accessible from new options in the menus.
  + Menus are now user-definable, using a new enMenus.cfg configuration
    file. Full details in the new NextZXOS guide.

* Editor enhancements:
  + Added configurable editor colour schemes (also used by the menu system),
    which can be set with new .EDITPREFS dot command or by selecting a .ecs
    file from the Browser.
  + Added coloured syntax highlighting in the 32-column editor mode, dependent
    on the currently-selected editor colour scheme.

* Browser enhancements:
  + Added configurable Browser colour schemes, which can be set with the
    new .BROWSEPREFS dot command or by selecting a .bcs file from the Browser.
  + Added new "Order" display mode to determine how the Browser sorts the
    directory:
      * name (default)
      * file size
      * date & time
      * none (unsorted, as previously)
    Sort orders can also be reversed by pressing + or -
    Sorting can be aborted by pressing BREAK.
  + Added new "Search" option which provides an incremental search on filename
    (only available when sorting by name).
  + Added new "Info" display mode to switch between what additional file
    information is shown:
      * nothing (default)
      * file sizes
      * date & time
      * attributes
  + Added new "Mix" display mode option. By default this is on, with files
    and directories listed together (as previously). If it is turned off,
    directories will be listed first and will not be affected by any filter
    (enabling easier navigation when a filter is set).
  + Added new "Name" action to display the full long filename of the
    currently-highlighted file or directory.
  + Added support for runnable directories (with extension .run, containing
    run.bas file to be automatically loaded).
  + Added support for "links" to other files/directories. These can be added
    to C:/Links which can be quickly accessed by pressing L.
  + Added support for showing guide for currently-highlighted filename
    (or internal documentation of runnable directories) when G is pressed.
    If no suitable guide is available, the Browser guide is shown.
  + Copy/paste is enhanced to allow renaming of file when pasted (thus allowing
    copies of files to be made in the same directory).
  + Added "Move", allowing files/directories to be moved (and optionally
    renamed) to another location on the same drive.
  + Added new "extended actions" menu, accessed by pressing EXTEND. This
    provides context-sensitive additional actions for the currently-selected
    file or directory, configurable using the c:/nextzxos/enBrowsext.cfg file.
    Initially-provided actions are:
      * Edit
      * Text2BAS
      * BAS2Text
      * Hexdump
      * MakeRUN
      * MakeLink
      * Catalog
      * Clear
      * Mount
      * Defrag
      * +/-PROT
      * +/-SYS
  + Added additional filtering options:
      * press S to toggle showing system files
      * press . to toggle showing "." and ".." special directory entries
      * press { to toggle showing metadata (eg saved settings for .TAP/.TZXs)
  + Browser.cfg now accepts multiple extension matches on each line
    (separated by commas), and extensions are no longer case-sensitive.
  + If a launched program is successfully executed, return to the Browser is
    now immediate, no longer requiring the user to press a key at "OK" report.
  + Default layer/sprite/palette is set on entry to the Browser to ensure the
    display is not left in an unexpected state when launching software.
  + No longer allow actions to be attempted if no file is highlighted.
  + Added support for changing user areas on +3DOS drives.

* Dot command changes:
  + Added .MAKERUN for creating runnable directories. It accepts any filetype
    supported by the Browser for the executable file, and .GDE, .TXT, .DOC or
    .MD documentation.
  + Added .BROWSEPREFS for setting the display and filtering preferences in
    the Browser.
  + Added .EDITPREFS for setting editor/menu system preferences.
  + Added new --filter option to .BROWSE to allow a temporary file filter
    to be enabled.
  + Removed .ASSOCIATE. With the changes to browser.cfg, this would be
    considerably more difficult to support and use. Since we now have native
    text editors such as .QE it is also no longer so useful.

* Filesystem enhancements:
  + Complete refactoring with new abstraction layer separating filesystem
    modules (currently FAT, CPM/+3DOS) from APIs (currently esxDOS, +3DOS).
    This allows all programs using either API to access files on any filesystem,
    so that (for example) dot commands can now work with files on the RAMdisk
    or mounted .P3D/.DSK images.
  + Time/datestamps are now set when modifying files on +3DOS filesystems
  + Exact filesizes and time/datestamps are now provided for +3DOS filesystems
    by the IDE_GET_LFN call. These therefore are now shown correctly in the
    Browser and CAT/LS commands.
  + . can now be used in pathnames to refer to the current directory on FAT
    drives even for the root directory.
  + Wildcards can now be used in any part of a path and will match the first
    directory found. eg CAT "c:/g*/next/orb/o*.*"

* NextBASIC enhancements:
  + The CAT/DIR/LS command now sorts its results by name (sorting may be
    aborted by pressing BREAK).
  + Improved information provided by CAT TAB and CAT ASN.
  + Integer expression evaluator optimisations.
  + Floating-point expression evaluator optimisations.
  + %CODE pseudo-variable added to control optional features.
    Setting bit 0 changes %RND n to return a value between 0..n (rather than
    0..n-1 as previously); this allows full 16-bit range of values to be
    returned with %RND 65535.

* API enhancements:
  + DOS_CATALOG +3DOS call and F_OPENDIR/F_READDIR esxDOS hooks now provide
    optional sorting and filtering facilities.
  + IDE_BROWSER call now provides a way to obtain or change the current
    Browser preferences.
  + IDE_WINDOW_LINEIN call now allows easy interruption and continuation of
    input, and input to screen in any layer/mode.
  + IDE_SWAP_OPEN now allows any unfragmented file to be specified as a swap
    file, intended for fast access to application-provided resource files.
  + IDE_DOS_MAPPING can now return full path info for mounted filesystems.

* Miscellaneous:
  + Welcome program is now distributed as AUTOEXEC.1ST to avoid overwriting
    a user's AUTOEXEC.BAS when updating SD card with new version of NextZXOS.
    Both files are loaded automatically (if present).


v2.06N 2020-10-14
=================
* Reverted attempted fix for Calculator issues in v2.06J, which caused a
  regression in the main NextBASIC editor (issue #35).
* Properly fixed Calculator issues (#18 & #28).
* VERIFY now uses same drive as SAVE (issue #32).
* Fixed syntax error with VERIFY..DATA on disk drives (issue #32).


v2.06M 2020-07-08
=================
* Fixed PLOT/POINT TO/DRAW/CIRCLE to operate on the backbuffer for layer2 instead
  of the frontbuffer.
* Fixed NEXT % to generate NEXT without FOR if current loop doesn't match
  the provided variable (previously it would silently continue).
* Fixed TILE..AT to accept tilemap coordinates > 255.


v2.06L 2020-06-19
=================
* Added .UNZIP dot command for extracting files from .zip archives.
* Fix for corruption with programs that use POKE 23739,111 to suppress output
  to the screen.
* Fix for "N Statement lost" with CONTINUE if report occurred at line number
  with bit 7 set (should have been checking bit 15).
* Fix for crashes in editor in Command Line mode soon after entering a numbered
  BASIC line.
* Fix for IDE_DRIVER call corrupting 2 bytes of BASIC workspace, due to using
  a +3DOS function which expected RAM7 to be at the top of memory.
* Fix for crash when performing an in-game save from Spellbound 128 to a .TAP
  file output. This was caused by an IM2 routine activating whilst the DivMMC
  was active, and fixed by delaying the tape save trap until after the DI.
* Removed advanced hardware option to disable DivMMC/SPI in tape/TAP/TZX loaders,
  since too many aspects of NextZXOS require this to be enabled to allow this
  to be safely done.
* Updated About screen credits.


v2.06K 2020-06-08
=================
* Fix hang bug in TAP loader introduced in v2.06J


v2.06J 2020-06-08
=================
* Fix for .TAP file loading with custom loaders that call into the ROM routine
  at $056a (fixes "Sliding Blocks").
* Fixed saving/restoring current interrupt status to workaround NMOS Z80 bug
  with LD A,I/R instructions.
* Fix for crash/screen corruption problems if the Calculator was used before
  NextBASIC or the Command Line.
* Fix for rightmost pixels in 64-column mode being left on the screen when
  when switching to 85-column mode in the editor.
* Fixed the editor to cope with programs where the first line has been POKEd
  to line number zero. Previously this caused the line to be shown (without a
  number) on every screen row. Now such lines are not shown in the editor
  (although they can be LISTed).
* Improved the %RND random-number generator. This now uses an XorShift32
  instead of XorShift16 to improve the period from 2^16-1 to 2^32-1. Additionally,
  bitmask rejection is now used to place the number in the correct range,
  removing the bias inherent in the previously-used integer multiply.
* %RND 0 can now be used to obtain a random number in the full range 0..65535
  - this can be thought of (and, indeed, typed as) %RND 65536.
* Changed the floating-point RND function to use the same generator as %RND.
  This greatly improves the randomness, provides a full 32-bits of mantissa
  and improves performance by ~3.3x.
* Fixed saving/restoring of the current Next register number in the NMI menu
  (fixes returns to ScrollNutter demo).
* Fixed restore of new mapmode register ($8f) introduced in v2.06H in NMI menu,
  to before restoration of +3 and MMU paging registers (fixes return to
  NextZXOS screensaver).
* Updated About screen credits.


v2.06I 2020-05-07
=================
* Fix for cursor jumping to end of previous screen line in editor if cursor
  right pressed at end of program line containing syntax errors.
* Fix for screen scrolling issues in PAWed games run in +3 mode (usually from
  .DSKs), caused by entry point change introduced in v2.06.
* Fix for INPUT in layer 0 showing incorrect characters if the character set
  had been redefined in memory above $c000 (caused by switch to using new
  nextreg-based ROM paging in v2.06).
* Updated About screen credits.


v2.06H 2020-05-01
=================
* Updated scanline options in Settings menu to new 50%/25%/12.5%/OFF values.
* Added support for new mapmode register ($8f) to disable Pentagon memory mapping.
* Added ULAplus, Mouse DPI & button swap choices to the Settings/General menu.
* Enable all DAC hardware at reset.
* Added new NextRegs to NMI Status page: $0a,$26,$27,$64,$6a,$70,$71,$7f,$80,
  $81,$82,$83,$84,$85,$86,$87,$88,$89,$8a,$8c,$8f,$90,$91,$92,$93,$a8.
* Preserve FRAMES when initialising LOADs from cassette/TAP/TZX to preserve
  game randomness.
* Updated About screen credits.


v2.06G 2020-04-29
=================
* Clear attributes on reset to avoid visible artifacts during memory test.
* Fixed crash loading Scapeghost +3 .DSK, caused by a flawed optimisation
  introduced in v2.06F.


v2.06F 2020-04-28
=================
* Fixed bug where BANK n ERASE without any parameters erroneously used the same
  number of parameters as any preceding BANK n ERASE... command, leading to
  incorrect bank/length/erase value and potential memory corruption.
* Fixed bug in RAMdisk block allocation causing a big slowdown in writing
  files to the RAMdisk.
* Before executing a command, the editor screen is cleared as well as the
  BASIC screen. This prevents program listings being left visible (or partially
  visible) if the last LAYER command was LAYER 2,0 (ie layer 2 is current but
  hidden).
* Improved performance of .POK file processing by buffering the file reads.
  This reduces the time taken to process the pathological 353K "MattsKit.pok"
  case from ~72s to ~5s.


v2.06E 2020-04-27
=================
* Fixed crash in Calculator if used prior to NextBASIC and DELETE immediately
  pressed followed by any other character.
* Fixed bug where LET x=BANK x... was incorrectly accepted as valid syntax.
* Fixed bug in tokeniser causing additional spaces to be inserted after REM
  keyword (bug introduced in v2.06B).
* Updated About screen credits.


v2.06D 2020-04-22
=================
* Reordered initialisation code to ensure all Pentagon modes properly disabled
  at reset.
* Added .CORE for booting additional cores flashed by the new multicore
  firmware (v1.26).
* Fixed use of dot commands from within banked sections of NextBASIC programs.
* Updated About screen credits.


v2.06C 2020-04-18
=================
* Added support for non-standard .Z80 hardware type 12 (+2) used by FUSE and
  possibly other emulators. Fixes a .Z80 snapshot of Football Manager Revisited
  seen in the wild.


v2.06B 2020-04-13
=================
* Fix for .Z80 snapshot loading where 0xED is the last byte in a block.
* Fix IM2 usage in Next/+3 mode for games using 0xFF bytes in ROM as IM2 table.
* Fix for calculator bug introduced in v2.06 (negative integers multiplied by
  zero gave -1E-38 instead of zero).
* Fix for accuracy of DEC_TO_FP routine in ROM3.
* Ensure Pentagon 512 mode is disabled at reset.
* Fix for editor incorrectly suppressing spaces surrounding UDGs in strings.
* Added hint to .CPM that CPM-A.P3D may need defragmenting if mount fails.
* Improved performance of .ASSOCIATE, .BAS2TXT, .TXT2BAS, .MKSWAP, .MKDATA,
  .DEFRAG and .BROWSE by running at 28MHz instead of 14MHz.
* Fixed problem with editor in 32/64-column modes where the maximum line length
  supportable was considerably shorter than needed since not all the offscreen
  buffers were fully utilised.
* Added limit of 1280 chars (1.25K) of text for a single program line (including
  line number digits and terminating ENTER) to ensure editor can always
  properly edit a line. This is enforced by the editor, LINE MERGE and .txt2bas.
* Fixed TAP/TZX/tape loads in Next/+3 mode to execute from a direct command
  instead of a program line, preventing spurious problems such as "Statement
  lost" when loading non-autorunning programs.
* Fixed crash after dot commands caused errors during channel i/o.
* Fixed .ASSOCIATE, .BAS2TXT, .TXT2BAS and .BROWSE to generate correct standard
  errors when they occur (eg during channel i/o).
* Fixed lower-screen/tape tester/main menu background colours to use the editor
  colours instead of BASIC colours (broken by v2.05).
* Fixed typo causing RAM7 to be overwritten during legacy ROM installation,
  leading to .SNA files not being correctly closed after loading.
* Updated About screen credits.


v2.06A 2020-03-30
=================
* LET is now optional and can be omitted.
* Fixed ability to indent lines in the editor (broken in v2.06).
* Fixed crash assigning a null string to a sliced string (or string array).
* Fixes for integer FOR loops:
    + no longer incorrectly wrap around from 65535 to 0
    + allow negative steps
* Fixed DELETE in editor; this no longer causes the remainder of the line to
  be entered/executed if delete pressed at the start of the line.
* Fixed incorrect line number in error reports when error occurs in VAL/VAL$.
* Fixed error trapping when error occurs in VAL/VAL$/INPUT.
* Fixed CONTINUE to generate a "Statement lost" error (instead of appearing to
  hang) when attempting to CONTINUE a direct command.
* Fixed AY sound becoming accidentally enabled when making settings changes
  in the NMI menu.
* Ensure error trapping details are properly initialised on startup.
* Replace non-ASCII characters in long filenames with underscores when
  displayed.
* Made the RAM test non-destructive on 16K banks >= 12.
* Improved the "stickiness" of the current editor line position; no longer
  reset to the start after various menu options (Clear, 32/64/85 cols,
  Command Line <--> NextBASIC), and no longer change to the line in the
  error report for OK/BREAK reports.
* No longer disable TurboSound on legacy games (fixes Aliens Neoplasma).
* Removed obsolete workaround for layer2 writes from interrupt routine.
* .TXT2BAS v1.4: Added -a (--always-write) option to output .BAS even if there
  were syntax errors (these are placed in commented-out lines).
* Updated About screen credits.


v2.06 2020-03-25
================
* Improvements to sprite handling (with example usage programs found in
    c:/demos/NextBASIC/basicSprites/ and c:/games/Next/NextBASIC Invaders/):

    * All sprite attributes (plus additional data) are now cached in RAM8 to
      allow new commands to be added.
    * 128 sprites may now be used (up from 64)
    * Relative sprites are now supported, specified in the main SPRITE
      command with a negative sprite number (other sprites, specifed with
      positive sprite numbers, are "anchor" sprites). All relative sprites are
      attached to the previous anchor sprite, and their x/y coordinates are
      relative offsets (-127..+127) from the coordinates of the anchor.
    * Extended main SPRITE command with 3 new parameters (r, mx, my):
        + r is a 3-bit value for anchor/relative sprite flags:
            bit 0: (anchor sprites only): 0=composite type, 1=unified type
            bit 1: (relative sprites only): 1=pattern number is relative to
                                            the anchor sprite's pattern number
            bit 2: (relative sprites only): 1=palette offset is relative to
                                            the anchor sprite's palette offset
        + mx: scaling factor in x-direction (0=1x, 1=2x, 2=4x, 3=8x)
        + my: scaling factor in y-direction (0=1x, 1=2x, 2=4x, 3=8x)
        For unified relative sprites, the scaling factors (plus the main rotation
        and mirror flags) are applied relative to the anchor sprite.
        For composite relative sprites, the scaling factors (plus the main rotation
        and mirror flags) are individually specified for each sprite.
    * All parameters in main SPRITE command are now optional; if not specified,
      the previous settings are retained.
    * Added support for batching changes to sprites, and sending them all to
      the hardware at once:
        SPRITE STOP         enables batching mode
        SPRITE RUN          disables batching mode (default)
        SPRITE MOVE         send all currently-batched sprite changes to the hardware
        SPRITE MOVE INT     as SPRITE MOVE, but first waits for the 50/60Hz
                            interrupt so that updates are synced to the framerate
        SPRITE MOVE INT y   as SPRITE MOVE INT, but waits until specified
                            sprite y coord to allow sprite flicker prevention
    * Added support for automatic updates to the position and pattern of a
      sprite, according to predefined rules. After defining a sprite with
      the usual SPRITE command, use SPRITE CONTINUE to define its automatic
      movement rules (which are applied on every SPRITE MOVE command). Each
      clause is optional; if not specified, the previous settings are retained.
        SPRITE CONTINUE s, [x1 [TO x2]] [STEP xs] [RUN or STOP],
                           [y1 [TO y2]] [STEP ys] [RUN or STOP],
                           [p1 [TO p2]],
                           [f], [r], [d]

        where: x1 is minimum value for x-coordinate
               x2 is maximum value for x-coordinate (=x1 if not provided)
               xs is signed x-step in pixels for every move (=1 if not provided)

               y1 is minimum value for y-coordinate
               y2 is maximum value for y-coordinate (=y1 if not provided)
               ys is signed y-step in pixels for every move (=1 if not provided)

               If the STOP keyword is present, the sprite is initially stopped in
               the direction specified (otherwise, it is initially moving)

               p1 is minimum value for sprite pattern
               p2 is maximum value for sprite pattern

               f is an 8-bit flag value:
                 bits 1..0: behaviour when x,y limits are reached:
                            00 = reflect this direction
                            01 = stop this direction, start other direction
                            10 = stop this direction
                            11 = stop completely and make sprite invisible
                 bit 2: flip the Y-mirror flag when y limits are reached
                 bit 3: flip the X-mirror flag when x limits are reached
                 bit 4: behaviour of pattern change:
                            0 = cycle upwards, wrapping back to lower limit
                            1 = bounce between lower and upper limits
                 bit 5: if set, sprite is disabled when pattern reaches limits
                 bit 6: if set, update pattern even when sprite is stationary
                 bit 7: if set, X-mirror/Y-mirror/rotation flag are set
                        according to direction of travel (overrides bits 2 & 3)

               r  is the movement rate (0..255)
                         (0=moves on every SPRITE MOVE command,
                          1=skips one SPRITE MOVE after moving etc)

               d  is the initial delay (0..255)
                         (0=no delay, 1=wait one SPRITE MOVE etc)

        SPRITE PAUSE s1 [TO s2]
            turns off automatic movement for a single sprite or range of sprites

        SPRITE CONTINUE s1 [TO s2]
            turns automatic movement back on for a single sprite or range of sprites

    * Added new functions (available in the integer expression evaluator only):
        SPRITE s            returns 1 if sprite is visible, 0 if not visible

        SPRITE CONTINUE s   returns mask of current movement for this sprite:
                bit 2: set if moving in X
                bit 1: set if moving in Y
                bit 0: set if automatically moving
        (If bit 0 is set but not bit 1/2, then only image movement is enabled)

        SPRITE AT(s,0)      returns x coordinate of sprite
        SPRITE AT(s,1)      returns y coordinate of sprite
        SPRITE AT(s,2)      returns pattern of sprite
        SPRITE AT(s,3)      returns signed automatic x step
        SPRITE AT(s,4)      returns signed automatic y step
        SPRITE AT(s,5)      returns delay until next sprite automatic movement

        SPRITE OVER(s1, s2 [TO s3] [,overlapX [,overlapY] ])

          Performs bounding-box collision detection between sprite s1, and a
          single other sprite s2 or range of sprites s2..s3.

          Returns 0 if no collision, or the number of the colliding sprite (s2..s3)
          (NOTE: if the colliding sprite is 0, 128 is returned)
          (NOTE: any relative sprites following s2 or s3 will also be checked)

          Optional acceptable overlaps (in pixels) can be provided in overlapX
          and/or overlapY. If overlapX is not present, 0 (no overlap) is used.
          If overlapY is not present, the value of overlapX is used.

* Improvements to .DSK file processing for improved game compatibility:
    + Implemented low-level call support (DD_L_READ, DD_READ_SECTOR, DD_ENCODE)
      with support for sector sizes between 256 bytes and 16K (makes many games
      from ACE, CRL, Zigurat, Dinamic & other Spanish software houses work)
    + Re-worked .DSK processing to avoid using any RAM7 data other than that
      used on original +3 in low-level calls (other data moved to RAM8)
    + Fix for crashes caused by DOS_BOOT leaving BANKM system variable in
      incorrect state
    + Fix for errors caused by some loaders modifying BANK678 from BASIC and
      causing NextBASIC calls to ROM3 to instead call ROM1 (eg Wrestling
      Superstars, Darius+, Tetris)
    + Fixed regression with Magnetic Scrolls games by adding CLS to
      mounter.bas helper
    + Turn off Timex mode when booting a disk (fixes After The War)
    + Attempt to detect loaders directly accessing FDC and halt with a message
      (successfully detects many games from Ocean, Virgin, Rainbird, Elite,
      Image Works, Electronic Arts, Mindscape, Palace etc)
    + Added stub patch to ROM3 to allow +3 ZXZVM-based disks to detect the Next
      as a +3 and run correctly (such games are, however, better run directly
      in the Next's native ZXZVM)

* Improvements to Multiface keymap option (screens by Richard Hallas):
    + In NextZXOS mode, a help screen for the editor keys is available by
      pressing EXTEND
    + Different keymap screens are shown depending on the current mode
      (NextZXOS, 48K/128K standard ROM, 48K LG ROM)

* ROM3 (providing 48K BASIC functionality within NextZXOS mode) is now no longer
  required to retain full compatibility with 48K/128K Spectrums, since older
  software is run with the original 48K/128K ROMs. The following changes
  to it have therefore been possible:
    + Removed initialisation/NEW, cassette-handling and "ZX81 name" routines
      to free up space
    + Fixed SCREEN$ bug (x$=SCREEN$(x,y) always evaluated to 1)
    + Fixed STR$ bug (x$+STR$ n (where -1<=n<=1) returned STR$ n only)
    + Fixed GOTO bug with line numbers > 9999 (returned incorrect errors)
    + Fixed "scroll?" prompt bugs (last command displayed when CAPS LOCK, GRAPH
      or EXTEND pressed; nonsense can be printed after pressing GRAPH & ENTER)
    + Fixed division rounding bug (eg PRINT 1/2-0.5 gave non-zero results)
    + Fixed evaluation of INT -65536 (previously evaluated to -1)
    + Fixed evaluation of -65535-1 (previously evaluated to -1E-38)
    + Fixed CHR$ 8 to correctly backspace from screen pos 1,0 and correctly
      do nothing from screen pos 0,0
    + Fixed CHR$ 9 to correctly update print position
    + Fixed decimal integer parsing to ignore spaces and control characters
    + Fixed USR n to no longer require H'L' to be preserved on return
    + Various optimisations to the standard expression evaluator

* Updated initialisation to enable all internal hardware, since FW v1.24+ now
  disables certain hardware.
* Added settings in the Multiface for HDMI Sound output and BEEPer redirection.
* Removed obsoleted DMA mode setting.
* Fixed the SPECTRUM command to work with core 3.01.02+ (where port 1ffd is
  decoded as 7ffd if timings have been changed to 128K machine and the port
  is disabled).
* Added new ABS function to the integer expression evaluator (returns the
  ABSolute value of a signed 16-bit argument).
* Made DPEEK function atomic, to aid in reading FRAMES system variable.
* Added CONT and RAND as synonyms for CONTINUE and RANDOMIZE to reduce typing.
* Fixed SAVE..DATA to prevent simple strings being incorrectly saved as if they
  were arrays (such files could not be reloaded and used).
* Fixed POKE (and DPOKE) to accept signed values (as with original 48K BASIC).
* Fixed filename printing if a system file could not be read on startup
  (broken in v2.05).
* Fix for NEW being slower than a soft reset (speed was not set to maximum).
* Fix for keypress at OK report after loading a .BAS program from the Browser
  not being sent to the editor.
* Fix for a crash if an out-of-range x coordinate was provided to PRINT POINT.
* Fix to allow READ and INPUT to assign negative values to integer variables.
* Fixed .DSK mounter helper to prevent entering an infinite loop if the .DSK
  was fragmented and not enough space was available to defragment it.
* Fix for renumber incorrectly amending INPUT LINE statements.
* Reworked all inter-ROM paging routines to use the new memmap register (0x8e).
  This brings considerable space-saving and some performance improvements. For
  example, printing 5-bit characters to windows or full-screen mode windows
  via RST $10 is now ~9% faster.
* Updated welcome program to reflect the recent changes to the TAP/TZX loaders.
* Updated About screen credits.
* Improved TZX/TAP loading reliability via Pi at high speeds on different
  video modes (fix from David Saphier).
* Require core v3.01.03+.


v2.05 2020-02-20
================
* Major internal reorganisation to free up space for fixes and new features.
* Enhanced Multiface keymap option:
   + This now detects if a ZX80, ZX81 or Next session is running, and displays
     the appropriate keymap
   + For ZX80 & ZX81 keymaps, "X" can be pressed to toggle between the "original"
     and "remapped" layouts that are provided by Paul Farrow's emulators.
   + New keymap screen graphics kindly provided by Richard Hallas.
* Menus navigation improved: EDIT, BREAK or SPACE can now be used to exit the
  current menu (or return to the previous menu).
* Joystick buttons 3 & 4 (A & START on MD controllers) now map to EDIT in the
  menus/Browser/NextBASIC editor etc.
* BREAK can now be used to abort selecting a location to save a file from
  within the NMI menu (saving snapshots, screenshots, palettes, banks etc).
* BREAK can now be used to abort applying a .POK file.
* Tape Loader option now allows you to select the appropriate mode for loading
  cassettes with (previously this always switched to 128K mode).
* Added "C"ode loading mode to TZX loader, for early games that required you
  to type LOAD""CODE (the TAP loader already auto-detects this type of game).
* Added Tape Tester option (a bug-fixed version of the utility found on the
  original 128K Spectrum and the grey +2).
* Fixed pixels sometimes left behind at right side of editor when switching
  between 32/64/85 modes.
* Fixed crash bug with "T"empo parameter in PLAY command.
* Fixed TAP loading of games with important data immediately below stack
  (eg 3D StarStrike).
* Fixed detection of 48K/128K mode when saving snapshots from the Multiface
  (since v2.03c this had been failing to detect 48K mode correctly).
* Fixed TAP games loaded in 48K/USR0 mode to start in BASIC cursor "L" mode
  rather than "K" mode (prevented some games from detecting keys, eg Knights).
* Fixed border colour reverting to white after screensaver had run in Multiface
  keymap screen.
* Fixed "loop error" sometimes seen with nested REPEAT loops following a WHILE.
* Improved presentation of TZX/TAP loaders.
* Fixed problem in the Browser's mount helper trying to defragment .DSK files
  with spaces in the filename.
* Fixed bug where editing a large (> approx 24K) BASIC program could lead to
  corrupted lines being added.
* Fixed a typo in the welcome program.
* Re-enabled the optional user-provided browser replacement (.FM).
* Updated About screen credits.


v2.04 2020-01-31
================
* Fixed CAT ASN command for SD cards with no MBR (volume spans entire card);
  previously this would halt with an "Invalid Partition" error.
* Fixed non-reentrancy of dot command syntax parsing: this would cause
  .TXT2BAS to loop infinitely if the input text file contained a dot command.
* Fix for .TXT2BAS ignoring the final line of the input text file if it
  didn't have an end-of-line terminator byte (CR or LF).
* Fixed a typo in windowing demo.
* Updated minimum required core version to 3.01.00.
* Updated welcome program with 28MHz and TZX info.
* Improvements to TZX/TAP loaders:
   + Clear printer buffer and main memory & reset sysvars when loading in
     48K/USR0/Pentagon modes
   + Disable contention in Pentagon mode
   + Ensure SEED is zero for all modes
   + Allow loading/running speed to be altered
   + Updated for latest .pisend command
* Updated browser.cfg for .ESP, .SND, .SDH, .SID files.


v2.03e 2019-12-23
=================
* 48K/128K compatibility mode improvements:
   + AY disabled by default in 48K mode (fixes Outrun in 48K mode)
   + DACs disabled by default (fixes Outrun in 128K mode)
   + Timex disabled by default (fixes Strange Loop)
   + DMA disabled by default
   + Port dffd additionally disabled by default in 128K mode
* Revamped TAP/TZX loaders to with new advanced hardware settings page
* Pi communication improvements in TZX/TAP loaders


v2.03d 2019-12-18
=================
* 128K/48K compatibility modes now have paging ports 1ffd (128K/48K) and
  7ffd/dffd (48K only) and +3 floating bus disabled for improved software
  compatibility.
* Fixed loading of SNX snapshots to not use the 128/48 compatibility modes.
* Updated use of AltROM register to match revised core 3.00.06.
* Added new option to TAP loader to allow loading via the Pi (needed for
  some custom loaders which are circulating in TAP format rather than TZX).
* Minor improvements to TZX loader (added note about Pi requirement, run at
  28MHz until Pi transfer and loading begins).


v2.03c 2019-12-14
=================
* Compatibility improvements with legacy software, by using the new AltROM
  feature (requires core v3.00.06+). This is used by:
   + the Tape Loader, ROM Cartridge & 48K BASIC menu options
   + the SPECTRUM f$ command (& IDE_SNAPLOAD call) for snapshot loading
   + revamped TAP & TZX loaders, which provide additional loading modes
   + the SPECTRUM command for switching to USR0 mode
* Added two new variants of the SPECTRUM command (mainly for use by the TAP &
  TZX loaders):
   + SPECTRUM LOAD
     Starts the Tape Loader option in 128K compatibility mode
   + SPECTRUM 48
     Switches to 48K compatibility mode, retaining the current program
* ZX80 & ZX81 games can now be interrupted by the NMI button.
* Fixed the ZX printer driver to preserve the state of the expansion bus
  registers, allowing it to be potentially used together with other hardware.
* Fixed all main menu & NMI menu options to use the same case conventions.
* Fixed DMA mode being set incorrectly to Next rather than Z80 during snapshot
  loading.
* Fixed a crash sometimes seen when entering a line in low-memory situations
  (now correctly generates "G No room for line" error).
* Minor BASIC error message changes.
* Removed RUN.BAS facility.


v2.03b 2019-11-27
=================
* Increased maximum selectable speed to 28MHz (requires core v3.00.04+).
* Reinstated the BANK 1346 USR command, accidentally disabled in v2.03a.
* Added signed integer sub-expressions. These can be embedded within any
  integer expression with:
    SGN {signed-expr}
  Signed integer expressions use all the same operators and functions as
  standard unsigned ones, but the arithmetic operators (+ - * / MOD) and the
  relational operators (< <= > >= = <>) treat their operands as signed values
  in the range -32768..32767. The other operators and functions can be used
  within a signed integer expression, but still treat their operands as unsigned.
* A fully-signed integer expression (eg %SGN{expr} ) returns a value in the
  range -32768..32767.
* Added unary minus (-) operator to the integer expression evaluator.
* Added function to read string from memory. Currently can only be used in the
  special-case commands:
    LET stringdest=PEEK$(addr,len)      [reads memory region to string]
    LET stringdest=PEEK$(addr,~)        [reads string terminated with bit7 from memory]
    LET stringdest=PEEK$(addr,~c)       [reads string terminated with character code c from memory]
    LET stringdest=BANK n PEEK$(addr,len)      [reads banked memory to string]
    LET stringdest=BANK n PEEK$(addr,~)        [reads string terminated with bit7 from bank]
    LET stringdest=BANK n PEEK$(addr,~c)       [reads string terminated with character code c from bank]
  eg:
    LET a$=PEEK$(22528,768)
    LET a$(10 TO 19)=PEEK$(30000,10)
    LET a$=PEEK$(31000,~)
    LET a$=PEEK$(32000,~0)
    LET a$=PEEK$(33000,~13)
    LET a$=BANK 10 PEEK$(1024, 16)
* Enhanced the POKE, DPOKE, BANK..POKE and BANK..DPOKE commands.
  Each command can now optionally take a list of values to poke into memory, separated
  by commas, instead of just a single value.
  Each value in the list may be any of:
    numeric value       [for POKE, pokes a byte]
                        [for DPOKE, pokes a word (16 bits)]
    numeric value~      [for POKE, pokes a word (16 bits)]
                        [for DPOKE, pokes a byte]
    string value        [pokes the entire contents of the string]
    string value~       [pokes the string, setting bit 7 on the final byte]
  Examples:
    POKE 32768,200                      (pokes 1 byte)
    POKE 32768,8,9,10,a$,30000~,55      (pokes 3 bytes, a string, a word, a byte)
    DPOKE 32768,1000,2000,3000,100~,2   (pokes 3 words, a byte, a word)
    BANK 10 POKE 0,a$~,45               (pokes string with bit 7 set on last char, a byte)
    BANK 10 DPOKE 32,1000               (pokes 1 word)
    POKE USR "A",1,3,7,15,31,63,127,255 (redefine UDG A)


v2.03a (2019-11-10)
===================
* CP/M BIOS v0.91:
    + Added missing CAN (ASCII 24) and TAB (ASCII 9) control code support to
      terminal emulator.
    + Remapped keys: DELETE is now CTRL-H and CTRL-DELETE is now DEL.
* Hardware support (requires experimental core v3.00.03+):
    + Expansion bus disabled on reset/NEW, saved/restored in multiface
    + Added default 'P' device driver supporting ZXPrinter/Alphacom32/Timex2040
    + Implemented COPY support through 'P' device driver
    + LPRINT/LLIST/COPY now work in 48K BASIC mode as well as NextZXOS mode
    + Added 'Print' option to multiface "Screenshots" menu
    + Added menu options to boot IF2-type cartridges (inc Dandanator, ZXC4 etc)
* Fixed random error messages when exiting from Tape Loader option
* Fixed crash in COPY..TO SCREEN$/LPRINT command (didn't affect COPY..TO #n)
* Fixed ERASE command to prevent silently erasing all files eg with ERASE "M:"
* Fixed crash when protected .DSK files with sector sizes <> 512 bytes were
  mounted
* Fixed mounter helper to overwrite "Filter" text in banner
* When loading .TAP files and legacy snapshots (.SNA, .Z80), set the global
  transparency colour to black, matching the default fallback colour. This
  fixes issues in "Nixy and the Seeds of Doom" and similarly-enhanced games
  which use a colour matching the default transparency colour.
* Optimisations to the parser and the integer expression evaluator.
* Added new functions and operators to the integer expression evaluator:
   IN n                 - read value from hardware port
   REG n                - read value from Next Register
   PEEK a               - read byte from memory
   DPEEK a              - read word from memory (double-peek)
   USR a                - execute m/c routine and return value left in BC
   BIN n                - synonym for @n, specifying binary values
   NOT n                - logical not (zero -> 1, non-zero -> 0)
   x AND y              - logical and (gives 0 if y is zero, x if y is non-zero)
   x OR y               - logical or (gives x if y is zero, 1 if y is non-zero)
   RND n                - generate pseudo-random value in range 0..n-1
                          (equivalent to floating-point INT (RND*n) )
   BANK b PEEK o        - read byte from bank
   BANK b DPEEK o       - read word from bank (double-peek)
   BANK b USR o         - execute m/c routine in bank & return value left in BC
   INT {fp-expr}        - embed a floating-point expression into an integer
                          expression (eg, INT{INKEY$="N" OR INKEY$="n"} )
* Integer expression relational operators (<,<=,=,<>,>=,>) now return 1 for
  true instead of $ffff, to match the floating-point expression evaluator
* Integer arrays may now be used in a more flexible way, depending on the needs
  of the programmer.
  The standard way to access arrays remains:
    A(x)        where A is an array name A..Z and x is an element number 0..63
  If a 1-dimensional array with more than 64 elements is required, use:
    A[x]        where A is the base array name A..Z and x is an element number.
                If the element number is 64, then the first element of the next
                array is used and so on. So if you need up to 128 elements,
                and use E[x] with x=0..127, you should not use array F() since
                it is being used by E[64]..E[127].
                The maximum 1D array size usable with this method is 26*64=1664
                elements, if using A[0]..A[1663], with no other arrays available.
  If a 2-dimensional array is required, use:
    A[x][y]     where A is the base array name, x is the array number and
                y is the element number 0..63.
                eg using C[x][y] with x=0..4 will use arrays C,D,E,F,G.
* Added new command to set a Next Register:
   REG n,v
* Added new commands to store a word in memory or a bank (double-poke):
   DPOKE a,v
   BANK b DPOKE a,v
* Deprecated the following commands, whose functionality is now provided within
  the integer expression evaluator:
   BANK b PEEK o
   BANK b USR o
* Fixed "Tape loader" -> "Tape Loader" menu entry to match 128K/+2 grey models
* Added missing .AKY association to browser.cfg


v2.03 (2019-10-07)
===================
* Fix for crash sometimes seen when loading a new BASIC program from the
  Browser and re-entering the editor when it is in 64/85 column mode, and
  a previous program has been edited


v2.02b (2019-10-06)
===================
* Fix for Browser not properly respecting editor colours (set by SPECTRUM
  INK/PAPER/ATTR commands)
* Fix for flashing background seen when entering NextBASIC editor after an
  error message generated in the Browser
* Fix for crash when invalid I/O device report generated in 32-column command-
  line mode (eg LLIST with a valid program but no valid printer device)
* Updated multiface About screen


v2.02a (2019-10-04)
===================
* Improved appearance of CP/M's TERMINFO.COM utility, making use of colour
* Fixed CP/M's COLOUR utility to always set the default colour scheme ([set
  option is now removed)
* Fixed .CPM loader to prevent font corruption that could sometimes occur,
  depending on the size of the currently-loaded BASIC program
* Fixed editor keys so that EXTEND,CAPS LOCK goes to start of program and
  EXTEND,GRAPH goes to program end. This makes more sense on the final Next
  keyboard layout
* Prevent multiface re-entrancy when button pressed from View screen option
* Prevent instant exit to Debug menu after exiting View screen with SPACE
* Fixed TAP loader, mounter and welcome program so they don't lock up if run
  at 7/14MHz (due to change in NextReg 7 read bits in cores 3.x).


v2.02 (2019-09-29)
==================
* Added CP/M Plus (with Next BIOS v0.9), accessible from the main menu
* Fixes for multiface stopping/restarting copper
* Fix for crashes when multiface exits to DivMMC RAM due to layer2 port
  being written with random data
* Updated multiface for the properly ordered indices when reading NextReg 0x1c
* Fixed IDE_SNAPLOAD to not apply any timings changes for .SNX files
* Added support for multiface exit to CP/M page zero
* Added support for the last-record-byte-count on +3DOS drives, allowing
  exact filesizes to now be maintained
* Fixed up timestamp handling in +3DOS: the existing routine operated under
  a complete misapprehension over the location of directory data, and failed
  to achieve anything. The new routine now sets timestamps to zeros for all
  updated files on +3DOS drives [support for timestamps from the RTC to be
  added in a later version]
* .MKDATA now creates .P3D images primed with timestamp entries


v2.01f (2019-09-25)
===================
* Updated AUTOEXEC welcome program to describe SYM+ENTER option in the
  Browser, and added missing filetype descriptions for .WAV & .MD
* Fixed issue where under specific circumstances the Browser could fail to
  obtain an LFN, leading it to repeat the last LFN in every on-screen slot
* Improved validation of Browser's persistent filter using a checksum, to
  ensure an invalid filter isn't accidently used after a power cycle
* Fixed IDE_SNAPLOAD to set 48K machine timings for 48K snapshots (previously
  128K timings were used for all snapshots)
* Fix for MF Settings->Sound menu failing to remove its RTC menu line on exit
* Fixed CP/M menu entry to clear screen, ensuring copyright message removed
* DivMMC RAM3 is now left unused by NextZXOS, allowing it to be allocated for
  potential use as user NMI bank
* Core v3.00.00+ is now required to start NextZXOS (unless machine id=EMULATOR)
* Updates for working with core v3.00.00+ :
   + LAYER BANK command now allows any available banks to be specified
   + Initialise new NextReg 0x06 bit 5 to 1 at reset/NEW/ (F3 key enable)
   + Simplified PSG init at reset/NEW using new %11 audiochip mode
   + Added NextRegs 0x61, 0x62, 0xA0, 0xA2 to MF debugger status display
   + Added new Issue2/3 keyboard option to MF settings
   + Updated MF setting names to reflect revised audichip modes in NextReg 0x06
   + Updated MF to use new NextReg 0x28 to obtain first written byte of 9-bit
     palette data, rather than reading from memory
   + Updated MF to only save/restore current PSG and freeze other PSGs using
     new %11 audiochip mode. This avoids losing state regarding current PSG
     and channel disables
   + MF now reads border colour from new port 0xfe3f, instead of guessing
   + MF now restarts copper on exit if appropriate
   + Fixed MF to repage DivMMC RAM and return there if it was active, as it is
     now possible to enter MF when executing from DivMMC.
   + Fixed NMI entry points, as now MF is paged in immediately on NMI, not
     after 1 machine cycle
   + Fixed MF to use only the "set speed" in NextReg 0x07, ignoring high bits
   + Removed MF workaround for broken 7ffd paging override in core 1.10.31


v2.01e (2019-09-02)
===================
* Fixed a flaw in v2.01d's revised snapshot executor: the final RAM
  configuration was not set until after the PC had been pushed to the stack,
  so a snapshot could crash if SP>$c000 and current RAM page <> last RAM page
  in the snapshot file.


v2.01d (2019-09-01)
===================
* ZX80/ZX81 ROMs now loaded from the new location of C:/MACHINES/NEXT, to
  match new firmware v1.15.
* Internal overlay re-organisation.
* Complete rewrite of renumber (from menu & with LINE n,m command). This fixes
  issues with the previous routine not always updating line references.
  Line references are now always updated to integer format (%linenum) as a
  minor speed & space optimisation.
  Computed line references are now marked with a "?" in the listing to indicate
  these should be manually corrected, as are references that could not be
  updated in the unlikely event of lack of memory.
* Changed SNA/Z80 snapshot loading to use bytes on the stack rather than the
  screen for the final boot operation. This fixes any visible screen corruption
  and also fixes snapshots such as Ranarama.z80 which checked for this.
* Updated the LAYER OVER n command to accept the new blending modes (6 & 7).
* Ensure turbo-key (F8) is enabled on NEW/reset, in case software has disabled
  it.
* Fixed CAT "T:" and BANK..LINE commands to output correct token text in
  non-Layer0 modes (they were incorrectly displaying UDGs instead).
* Fixed screen flicker when operating in 64/85-column command-line mode.
* Fixed screen flicker on return from the Multiface.
* Fixed brief visible screen corruption when switching to Timex/lo-res modes.
* Layer2 screen now cleared to black at reset/NEW.
* Fix for command-line mode incorrectly using the editor's clip window
  definitions instead of BASIC. This caused missing sprites when running games
  such as Pogie using .RUN/SPECTRUM from the command-line.
* Fixed TILE command for compatibility with new 3.x series cores which provide
  a new 48K mapping mode with port $123b.
* Fixed issue where the Browser's current drive could be accidentally changed
  by programs writing to RAM8 (such as OVERSCAN.SNA).
* Fixed bug where PROC..TO didn't return string values correctly if the
  destination was a dimensioned character array or a sliced string.
* Fixed bug where CLEAR/RUN in autoexec.bas or IDE_BASIC call could crash the
  system on return due to the stack being relocated.
* Updated the default welcome program to CLEAR variables before exiting.


v2.01C (2019-08-14)
===================
* Rewrote drive detection code, so available drives match those seen by the
  firmware and by esxDOS 0.8.7:
   + removed support for extended partitions (not supported by esxDOS/Firmware)
   + ignore partition types, allowing FAT volumes to be detected in any primary
     partition (some have been seen in the wild with bogus/invalid partition types)
   + fixed a potential crash if there was an error reading the FSI sector
* Changed partition naming to include just a single digit (primary partition id),
  removing the "sN" indicating secondary partition number.


v2.01B (2019-08-04)
===================
* Added "Clear" option to NextBASIC editor menu. This deletes all variables
  and resets RAMTOP to just below UDGs. Useful when memory has become so low
  it is impossible to interpret command lines to perform CLEARs or line deletes.
* Added settings for timings, DMA mode and AY mono modes to Multiface.
* SPECTRUM command now sets appropriate legacy modes, like snapshot and 48K/USR0
  TAP loading do.
* DMA mode is now defaulted to Next DMA at reset/NEW, and changed to Z80 DMA
  when loading legacy software.
* SNX files no longer have legacy software modes applied to them.
* Reinstated "Wrong file type" error when attempting to LOAD incorrect file
  types from SD (this was previously the unhelpful "R Tape loading error").
* Fixed reversed naming of AY/YM audiochip modes in Multiface.
* Multiface/reset/NEW now sets volumes on all AY channels to zero, ensuring
  no AY output can be heard (fixes interrupting ScrollNutter, amongst others).
* Fixed Multiface, BASIC editor & screensaver to save/restore all clip windows.
* Fixed Multiface to save/restore 9-bit palette register 2nd byte flag.
* Fixed FATfs to return non-ASCII characters directly (as graphics characters)
  rather than replacing with underscores. This allows such filenames to be
  interacted with directly instead of needing to use the short filename.
* Fixed bug where menus/editor/Browser displayed incorrectly if the system
  variable CHARS pointed above $c000.
* Fixed an issue where use of the Browser in certain circumstances (particularly
  remounts and copying files to IDEDOS drives) could cause TSTACK to grow down
  and overwrite some system variables.
* Fixed esxDOS f_read/f_write to treat BC=0 as zero bytes (previously considered
  to be 64K, like +3DOS's DOS_READ/DOS_WRITE).
* Fixed IDE_CAPACITY to return an error for invalid device numbers.
* Updated "About" screen credits.


v2.01A (2019-07-29)
===================
* Fixed .TXT2BAS to deal correctly with CRLF endings as well as CR or LF.
* Fixed version mismatch error messages when ROM version has a sub-letter.
* Fixed INPUT to not clear lower-screen during syntax-checking.
* Updated browser.cfg to clear screen before loading .Z80/.SNA/.SNX/.O/.P/.NEX
* Fixed L/R parameters in PLAY command (previously these were inverted).
* Fix for a crash if error opening source file in COPY..TO command.
* Fix for COPY..TO file/#n, which were incorrectly using SCREEN$ as destination.
* Fix for editor lower screen becoming inverted if booted with the last available
  drive (usually M:) as the default.
* Fix for incorrect statement number in "9 STOP" and "L BREAK" reports.
* Fix for "statement lost" error occurring in FOR or REPEAT loops which
  performed no iterations and had no further statements on the loop start
  line, and where the loop terminator was on the following line.
* Fixed menus to clear bottom-right corner (on-screen character could show
  through).
* Fixed Calculator mode evaluation: a decimal number at the start of input was
  mis-identified as a line number followed by a dot command, so further functions
  (eg PI) remained untokenised.


v2.01 (2019-07-21)
==================
* Added IDE_TOKENISER call, providing interface to BASIC line tokenising and
  detokenisation.
* Added .BAS2TXT and .TXT2BAS dot commands, allowing NextBASIC programs to be
  easily converted between BASIC and plain text formats.
* Improved startup error messages when there are missing system files or
  version mismatches.
* Ensured default sprite, layer & palette restored when loading legacy
  software (.TAP/.SNA/.SNX/.Z80/.O/.P/.DSK) and .NEX files.
* Legacy software (.Z80/.SNA/.SNX/.O/.P/.TAP) is now loaded with 48K or 128K
  machine timings when approriate instead of standard Next/+3 timings.
* LOAD/VERIFY..BANK now uses the file length as the default rather than 16K,
  allowing short files to be more easily loaded to a bank.
* REMOUNT/reboot/IDE_DOS_MAP now restore the last current working
  directory that was set on each drive when it is remapped (if it exists).
* Browser remembers last position in the current directory, and returns to it.
* If filename is too long to fit in the display, the Browser now ensures that
  both the start and end of the name can be seen (~ is placed where characters
  have been omitted).
* The Browser will now substitute LFNs rather than short names if the filename
  character is quoted in browser.cfg (eg use "|" rather than |). Only the first
  quote is checked, so new names can be created from LFNs (eg "|.bak")
* If SYMBOL-SHIFT is held down when ENTER is pressed, Browser now selects the
  2nd matching line in browser.cfg for the file extension instead of the first.
* Added filter option (press "F") to the Browser, accepting any wildcard
  pattern (eg "a*.tap" to show only .TAP files beginning with A)
* No longer close #3 at BASIC reports, allowing an alternative printer channel
  to be attached permanently to #3.
* Fixed problems loading TAP-based software using both the printer buffer and
  SPECTRUM command (eg Daley Thompson's Super-Test).
* Fix for ENTER/SPACE pressed at a report being used immediately by the Browser
  or menu.
* Fixed bug where editing line was printed to the lower screen if a mode key
  (EXTEND, GRAPH, CAPS) was pressed when NEXT #0 was used in LAYER 0 mode.
* Fixed default tilemap clip window (x2/y2 were transposed).
* Fixed the +3DOS version of IDE_PATH to not change the default drive.
* Added fixed 48K keymap to the Multiface.
* Minor parser optimisations.
* Updated credits on Multiface "About" screen.
* Updated browser.cfg to use .wavplay for .WAV files.
* Updated browser.cfg to provide LFNs to .MORE.
* Updated browser.cfg to display a text version of .BAS files if selected
  with SYMBOL SHIFT + ENTER.


v2.00F (2019-05-18)
===================
* Rewrote text windowing code to use the Z80N barrel shift instructions,
  giving an ~26% performance improvement to typical (5-bit) text output.
* Updated LAYER CLEAR to additionally reset the tilemap clip window.
* Fixed the screensaver to work correctly with tilemapped displays.
* Fixes for IDE_BROWSER call which was resetting the K channel and overwrote
  the RETADDR system variable.
* Added options to load/save tilemap palettes in the Multiface.
* Fixed the .DEFRAG dot command to allow files up to 4GB to be defragmented
  (previously limited to 32MB).
* Updated the default browser.cfg to use the new tilemapped version of ZXZVM.
* Added support for viewing .MD files (using .MORE) from the Browser.


v2.00E (2019-04-17)
===================
* For clarity, renamed joystick options to L(eft)/R(ight) in multiface settings.
* Removed bogus lightpen option from multiface settings.
* Removed workaround for fixed Timex hi-res offset bug from MF About screen.
* Added credit to Paul Land for his original joynav driver, the equivalent
  functionality for which was eventually incorporated into the standard
  keyboard driver.


v2.00D (2019-03-21)
===================
* Added keyboard map screen (courtesy of Phoebus Dokos) to Multiface.


v2.00C (2019-02-17)
===================
* Updated multiface to save, restore and display the recently-introduced
  nextregs (mainly tilemap-related).
* Fixed multiface to reset new nextregs as needed to prevent tilemap or ula
  offset settings from interfering with the display.
* Reset new nextregs 0x2f,0x30,0x31,0x68,0x6b to default on LAYER CLEAR/NEW/reset.
* Reset new nextreg 0x4c to default on PALETTE CLEAR/NEW/reset.
* Updated screensaver to adjust the tilemap clip window together with the others.
* Added new test for minimum required core version (currently 2.00.27).


v2.00B (2019-01-11)
===================
* Added support for navigation by Kempston joystick (providing cursor keys,
  ENTER with fire and SPACE with button 2). This works throughout NextZXOS,
  so can be used to control menus, browser, NextBASIC editor, 48 BASIC editing
  and BASIC games etc.
* Updated example keyboard driver with the Kempston support.
* Fixed a bug where MERGE command stopped working after a new keyboard driver
  was installed.
* SPRITE CLEAR (and NEW/reset) now clear attributes of 128 sprites (number of
  sprites supported by the hardware was increased from 64 in core v2.00.24).
* Fixed bug in parser, where command lines containing fully-pathed dot commands
  could result in "Nonsense in BASIC".
* Fixed "No such command" error when attempting to run dot commands (with .DOT
  extension) from the Browser.


v2.00A (2018-12-14)
===================
* Added new option to DISK_STRMSTART: bit 7 of A may be set to indicate the
  call should return immediately, and the user will wait for the first data token.
* Autoexec welcome program now flashes a "Disabling" information message whilst
  disabling is in progress.
* Fixed driver bankswitching example code in border.asm.
* Fixed INPUT returning invalid data if destination variable lies in top 16K
  of memory.
* Fixed crash in .BROWSE command if empty string provided to -p or -e options.
* Fix for MF overlays (such as About) and file browser not working on some cards,
  which appear not to like CMD12 being sent when no multiple sector read is in
  progress.
* Fix to ensure contention is re-enabled (and Timex/turbosound disabled) when
  loading legacy software via the Tape Loader option.


v2.00 (2018-09-09)
==================
* TurboSound is now left enabled by the TAP loader and snapshot loading. This
  can be disabled manually in the Multiface menu if needed.
* Timex mode is now only disabled in the TAP loader for USR0 and 48K modes
  (fixes Nextipeded).
* Fixed use of new Z80N add instructions to avoid any assumptions on flag effects.
* Added a wait-for-key in the Browser after displaying a .BMP image.


RC1 (v1.99R) 2018-09-08
=======================
* Added new option to F_OPENDIR, allowing F_READDIR to use a wildcard string
  to filter returned entries.
* Browser menu option will now run an external file manager/browser program
  if present as the .FM dot command. If .FM is not present, the internal
  browser is run.


v1.99Q (2018-09-04)
===================
* Rewrite of text justification routines, improving performance by ~40%.
* Minor performance optimisation in Multiface character output.
* Added .ASSOCIATE dot command for managing filetype associations for the
  Browser.
* Changed default handler for .TXT/DOC/CFG/INI/ASM to Marco's .MORE command,
  running in 85-column mode.
* Changed default line-endings of browser.cfg to CRLF, as DOS/Windows editors
  are less likely to cope with different line-endings than Mac/Unix ones.
* Print a blank line between output of each command in the Command Line in
  32-column mode, making it a bit more consistent with 64/85-column modes.
* Fixed a bug where 4 attribute bytes were corrupted during ZXZVM operation,
  due to new temp variables being incorrectly located within shadow screen area.


v1.99P (2018-09-02)
===================
* Added .BROWSE dot command, allowing BASIC programs to use the Browser dialog
  to request filenames.
* Added .NEXTVER dot command, allowing BASIC programs to detect running NextZXOS
  version (or if running in 48K/esxdos modes).
* Wildcards are now allowed in any part of a filename, eg:
  c:/gam*/man*.* could match c:/games/manic miner.tap
* Browser now shows error reasons for failing erase, rename, mkdir and paste.
* Reinstated stripping of leading space in dot command arguments, as some dot
  commands don't perform their own space stripping.
* Fixed a bug where Browser screen could go blank if a directory erase failed.
* Fixed a hang if a dot command with >255 characters of arguments was entered.
* Fixed broken text printing in Timex hi-colour mode (LAYER 1,3).
* Fixed fragmentation check in MKDATA and MKSWAP which could lead to fragmented
  images sometimes being created.
* Fixed a bug in M_P3DOS where the entry IX parameter was corrupted if the
  selected RAM page was 0.
* Fixed M_P3DOS when called from a dot command to not move stack if already
  >$4000; this avoids issues for calls requiring the stack to be as set by BASIC.
* Fixed M_P3DOS when called from a dot command to not disable interrupts for
  the duration of the call.
* Fixed IDE_MOUNT bug which erased vital temporary internal state, preventing
  it from returning to the caller after being called via M_P3DOS.
* Fixed Browser to clear the lower-screen before printing an error message.
* Don't set internal Browser mode flag when called from IDE_BROWSER, so .BROWSE
  returns to BASIC/Command Line rather than the menu system.
* Updated $, LFN, DEFRAG, INSTALL, UNINSTALL, MKDATA, MKSWAP to limit argument
  lengths to 255 characters per argument.
* Standardised help screens of $, LFN, DEFRAG, INSTALL, UNINSTALL, MKDATA,
  MKSWAP, BROWSE and NEXTVER.


v1.99N (2018-08-30)
===================
* TAP helper now respects the current settings for pause & simulate.
* Changed welcome program to use NEXT #n instead of INKEY$, so the screensaver
  can kick in.
* Clarifications and other tweaks in the welcome program.
* Enhanced F_GETCWD so it may alternatively be used to obtain a consistent path
  for any provided filespec.
* Fixed M_GETSETDRV to ignore the drive number field, allowing A: to be set
  as the default drive (by using drive number=1).
* Fixed dot command line parsing so quotes directly after the command name
  (without a separating space) are allowed.
* Fixed dot command line parsing to reject any embedded colour control codes
  that might be entered in 48K mode.
* Fixed the .DEFRAG, .$, .LFN, .INSTALL, .UNINSTALL, .MKDATA and .MKSWAP dot
  commands to accept quoted arguments.
* Fixed OPEN # to open input files as shared-read rather than exclusive-read.


v1.99M (2018-08-27)
===================
* Fixed adjustments to R register on entry to Multiface; these previously
  didn't take account of $ED shift opcodes.
* Fixed error status on return from M_TAPEIN hook with B=in_flags.
* Fixed bug in esxdos F_OPEN hook which caused files opened for read to be
  marked as also open for write.
* Removed workaround for allowing tape in/out files to be opened regardless
  of access modes (no longer required after previous bugfix).


v1.99L (2018-08-25)
===================
* Moved the "About" screen right by 1 char to work around the Timex offset bug
  in the core which is very visible if the screensaver kicks in on this page.
* Added ".ASM" association in the Browser, to view as a text file.
* More tweaks to the About screen, now named "About NextZXOS" and reflecting
  the authors of the dot commands that will be shipped in the final distro.
* IDE_PATH / F_RMDIR now refuse to delete any directory which is the current
  directory for its drive.
* M_TAPEIN hook with B=in_flags now also returns the previously-set flags in A.
* Fixed dot command syntax checking to prevent dot commands with unbalanced
  double-quotes from being accepted as valid statements.
* Fixed a bug where the automatic delete options of DOS_OPEN were failing to
  check if the file to be deleted was open.
* Fixed a bug in "screen" editor mode where the whole screen was scrolled up
  by one line after a report, if the entered command was > 1 line long.
* Removed an obsolete workaround to limit AY volume to 13 when >3 channels
  were being used in a PLAY command.
* Optimised layer2/lo-res text printing routine.


v1.99K (2018-08-24)
===================
* Implemented new IDE_MODE call, which returns information on the current
  display mode, and allows it to be changed.
* Added new command to execute m/code in any bank; the bank is automatically
  paged in to the top 16K, so address must be in the range 49152-65535:
    BANK n USR address
* Partial rewrite of Calculator mode, allowing integer expressions to be entered
  and removing some oddities (like silently ignoring lines with syntax errors).
* Added a progress display (in K) to the COPY command and Browser copy function.
* If paste of a file fails in the Browser, the error message is now shown.
* Fixed the path display in the Browser to show the final 51 chars of the path
  rather than the first 51 chars.
* Entering a direct command in full-screen editor mode now clears the screen
  so the command output is not interleaved with the program listing.
* Fixed NEW and REMOUNT so that the RAMdisk contents are retained.
* Added note in MF status page that a stepper/disassembler will be forthcoming.
* Updated About screen credits to reflect new dot commands.


v1.99J (2018-08-22)
===================
* Various optimisations to windowing code, improving performance by ~15% for
  typical case (5-bit characters, layer 1,1, full-screen mode window).
* Optimised string printing via PRINT command.
* Optimised integer expression evaluator to use Z80N opcodes where possible.
  In particular, performance of multiply increases by ~11.4x.
* Various optimisations to BASIC parser main loop, character collection and
  class evaluators.
* Various space-saving, including move filename handling into an overlay.
* Added optimised variants of several important ROM3 routines into ROM1,
  avoiding the ROM switch overhead, and avoiding using the floating-point
  calculator where possible.
* Fix for IDE_STREAM_IN/OUT treating "S"/"K" channels as layer 1,1 mode window
  when actually in layer 0.
* Fix for previously-masked bug, causing a crash with IDE_STREAM_IN/OUT for
  standard channels (S/K/P).
* Tweaks to autoexec "Welcome" program.


v1.99I (2018-08-19)
===================
* Split multiface settings menu into Joysticks/General/Sound, and added
  support for changing joysticks 1 & 2, Timex, Lightpen & audiochip mode.
* Added NextReg $09 (peripheral4) to multiface status page.
* Added cursor left/right navigation to the multiface TAP browser.
* TurboSound is now enabled at boot, and disabled when loading legacy SNA/Z80/TAP.
* When entering 48 BASIC, turbosound/Timex are disabled and contention is enabled.
* Writes to TAP files are now immediately committed, avoiding need to close the
  TAP file to ensure all changes are flushed.
* Fixed RST$18 in dot commands to ensure entry flags (F) are preserved for when
  the 48K ROM routine is started.
* Implemented rc_path_get reason (for PWD) on +3DOS drives as well as FAT drives.
* Implemented new IDE_MOUNT 2-stage call to allow applications to control
  changing SD cards, like the NextBASIC REMOUNT command.
* Changed directory containing dot commands from C:/BIN to C:/DOT, to make it
  easier to have different versions of dot commands for esxDOS and NextZXOS.
* Newly-allocated sectors on +3DOS drives are now erased with soft-EOFs ($1a),
  so that headerless text files can be copied from FAT drives and be treated
  as the proper exact length (rather than a multiple of 128-byte records).
* Updated Welcome autoexec.bas program to advertise the www.specnext.com/
  latestdistro/ page.
* Updated About screen credits.
* Updated .CPM placeholder with a more detailed help page.
* Fixed loading of Chase HQ 128K from Tape Loader or from a .TAP file from the
  Browser.
* Fixed issues returning string results from PROCedures which also had string
  parameters.
* Fixed lo-res/layer2 windows to open with the current permanent colours.
* Fixed out-of-memory error when auto-booting Art Studio +3 .DSK from the Browser.
* Fixed REMOUNT/IDE_MOUNT to close all swap partitions when unmounting cards.
* Fixed NEXT #0 TO var from within AUTOEXEC.BAS, due to key mode not yet having
  been initialised.
* Fixed crashes in Browser if errors occured during file copying; now an error
  beep sounds.
* Fixed a crash if Multiface was activated with a mismatched NextZXOS ROM.
* Fixed FAT32 access to ignore and preserve the top 4 bits of the cluster
  number (as required by the spec).


v1.99H (2018-08-15)
===================
* Completed implementation of .INSTALL and .UNINSTALL dot commands; these now
  provide bank allocation/deallocation for drivers.
* Updated border.drv example driver with bank allocation.
* NextBASIC now automatically uses any installed driver with id "P" for output
  to #3 (LLIST, LPRINT, PRINT #3 etc).
* Added sample printer driver.
* After a REM, no further tokenisation now occurs on the line (previously,
  keywords would be tokenised after a colon, even though no further statements
  are parsed or executed after a REM).
* Added semi-colon (;) as an alternative to REM. This is intended for use with
  dot commands (eg an assembler) so that they can parse such lines whilst
  NextBASIC ignores them.
* Fixes for breakpoints/memory browser messages, broken in v1.99G.
* Ensure interrupts disabled before switching from +3DOS ROM to DivMMC ROM
  rather than during the switch.


v1.99G (2018-08-06)
===================
* Added support for .SPR files in browser.cfg using .SPREDT.
* IY is now saved/restored and set to ERR_NR during the ISR.
* LAYER BANK command now restricts banks to within the first 16 as required.
* Deprecated IDE_PARTITION_RENAME/_WRITE/_WINFO/_SETINFO/_GETINFO and
  IDE_DOS_UNPERMANENT calls.
* Refactoring in preparation for Spanish language version support.
* M_DOSVERSION now additionally returns ROM language in HL ("en" or "es").
* ASCII 96 (backtick on most PCs; pound/currency symbol on Spectrum) can now
  be used in browser.cfg and will be substituted by language code ("en" or "es").
* Split out some functionality from the Multiface ROM into several new overlays
  to make room for more features.
* Added palette save & palette load options to Multiface (in screenshots menu).
* Added new Settings menu to Multiface, allowing some core settings to be
  modified on-the-fly.


v1.99F (2018-07-29)
===================
* Various fixes & tweaks to the default AUTOEXEC.BAS welcome program.
* Updated browser.cfg for new .NDAWPLAY which no longer needs a CLEAR.
* Fix for filetypes becoming unrecognised in the Browser after unmounting a
  disk image.
* MOUNTER.BAS helper now erases itself on successful completion.
* TAPLOAD.BAS helper shows USR0 option before 48K as this is preferable.
* Optimised FAT directory searches to early-exit when a never-used directory
  entry is encountered, instead of continuing to search the remaining entries.
* Fixed a bug in the editor where pressing delete on an empty line had caused
  the cursor to move to the top of the screen.
* Tweaks to "About" screen.
* Fixed paths returned by the IDE_PATH call (or PWD command) when directory
  names contained spaces and/or extensions after a short name. This had caused
  some oddities in the Browser when copying/pasting files.
* Added workaround to the REMOUNT command so if the card was removed early
  (manually, or automatically by a failing card) then the remount proceeds
  instead of generating an error (since such an error is not recoverable).
* Added a test for BREAK during BASIC stream input to prevent potential lockups.
* Fixed CONTINUE to work following a trapped error, so it can be used within
  an ON ERROR routine.


v1.99E (2018-07-27)
===================
* Added a default AUTOEXEC.BAS welcome program, introducing some of the
  features of NextZXOS.
* Added support for .Z1 - .Z8 Infocom/Inform game files to Browser, using a
  slightly modified version of John Elliott's ZXZVM for +3.
* Added support for .NEX files to Browser using .NEXLOAD command.
* Added window channel demo program (from +3e).
* Reworked dot command error reporting, fixing the following issues:
  + Dot command errors now appear correctly in modes other than layer 0
  + Dot command errors can now be trapped with ON ERROR (code is always 255)
  + An error within a dot command in AUTOEXEC.BAS no longer causes a crash
* Fixed EDIT key in Browser (broken in v1.99B).
* Reinstated help text for SPACE key in Browser (accidentally removed in
  v1.99B).
* Fixed cursor right in Browser if the current screen is full and there are
  no further files in the directory.


v1.99D (2018-07-19)
===================
* Fixed "Invalid Colour" error using Browser within Multiface replacement
  (introduced in v1.98N).
* Mounter helper now only accepts "Y" or "N" as answers to "boot disk" question.
* Fixed double editing cursor seen when entering Command Line mode immediately
  after mounting a disk from the Browser.


v1.99C (2018-07-18)
===================
* Re-brand to NextZXOS, including:
    + system files are now stored in the c:/nextzxos/ directory
    + main ROM is now called enNextZX.rom (so config.ini needs updating)
    + menu option is now called "Command Line" rather than NextZXOS, to avoid
      confusion


v1.99B (2018-07-15)
===================
* Improvements to +3 .DSK support:
    + standard .DSK images are now supported (as well as extended .DSK images)
    + any number of tracks now supported
    + tracks with different numbers of sectors now supported
    + any sector size is now allowed, although only 512-bytes read/written
    + fix for hang on +3/PCW disks with non-zero but blank disk specifiers
    + fixed disk size calculation, fixing seek errors on high track numbers
    + All Level 9, Magnetic Scrolls and Tasman disks tried now work; all
      disks without protection/encryption schemes should now work
* DOS_INITIALISE is now a no-op; it shouldn't be called except by the system
  but some games (eg Magnetic Scrolls) called it and cause their disks to become
  unmounted.
* Combined the .DSK/.P3D mounting helpers for the Browser, and improved with:
    + run at maximum speed to improve performance mounting large images
    + automatically defragment .DSK/.P3D files if necessary
    + allow booting of .P3D as well as .DSK files
    + restrict booting to disks mounted on A: (other drives not supported
      by the boot process)
    + report "Not bootable" rather than "File not found" for unbootable images
* Fix for exiting dot commands in cases where RETADDR had been overwritten
  by ROM routines called by the dot command.
* Fixed M_P3DOS to correctly read the input IX parameter (HL from dot commands).
* Fixed COPY..TO SCREEN$ (and related commands) to stop when soft-EOF ($1a)
  reached.
* Improved cursor left/right behaviour in Browser: if already on first/last
  page, the highlight will instead be moved to the first/last entry on the page.
* Added Unmount option to the Browser, allowing disk images to be easily
  unmounted.
* Fixed .DEFRAG dot command: this still hadn't been correctly checking the new
  file was defragmented, due to a lack of read access on the file.
* Added .LFN dot command to return the long filename for any short (8.3) name.
  This is useful for filenames returned by the Browser, which are always short.
* Added .$ dot command, allowing any other dot command to be executed with
  parameters held in a BASIC string variable, rather than just a literal argument.


v1.99A (2018-07-13)
===================
* Added support for opening system-supplied swap files (c:/nextzxos/swp-X.p3s)
  with IDE_SWAP_OPEN.
* Fixed low-level write return values so IDE_SWAP_OUT works correctly.
* Optimised IDE_SWAP_IN to reduce overheads by using a single multiple-sector
  read operation, and optimised the read to use INIs rather than INIRs.
* Added support for opening any named file as a swap file with IDE_SWAP_OPEN.
  This allows fast read (or write) access to unfragmented files in chunks of
  between 0.5K and 16K, with about the same performance as the streaming API.
* Deprecated inefficient IDE_SWAP_EX call.
* Fixed version checks in .MEM, .DEFRAG, .MKDATA and .MKP3D dot commands which
  prevented them from running on v1.99.
* Enhanced LOAD "*" command to try both DOS_BOOT and LOAD "disk" to boot a
  floppy disk image. This allows more disks to be automatically booted
  (eg Level 9's "Lancelot").
* Fixed incorrect remaining size calculation in FATfs file read function
  (broken in v1.99) which prevented Pogie from loading correctly.


v1.99 (2018-07-08)
==================
* The "LG" version of the ROMs now includes the latest (v07) "LG" (Looking
  Glass) ROM from Geoff Wearmouth.
* Optimisations in the FATfs module, to allow new features to be added.
* The FATfs module now correctly refuses to unmap drives which have open files.
* Implemented support for mounting +3DOS filesystem images (.P3D files)
  as drives, with enhancements to the IDE_DOS_MAP/IDE_DOS_MAPPING calls.
* Similarly, implemented support for mounting some +3 floppy disk images
  (.DSK files) as drives. Only unprotected disk images in standard formats
  are supported (tested with TasCalc and Tasword +3).
* Added .MKDATA and .MKSWAP dot commands to create +3DOS filesystem (.P3D)
  and swap partition (.P3S) images.
* MOVE...IN can now be used to manually mount .P3D or .DSK images.
* Added support for automatically mounting up to 8 .P3D or .DSK images
  stored in the c:/nextzxos/ directory and named DRV-x.P3D, DRV-x.DSK or
  CPM-x.P3D (where x is drive letter, A to P). In NextZXOS, DRV- files
  have priority.
* Added support for mounting .P3D and .DSK files using the Browser, with
  the addition of two new helper programs.
* Added placeholder .CPM dot command, executed by the main menu option.
* Fixed REMOUNT to unmap all mounted drives before physical drives.
* The RAMdisk is no longer wiped when REMOUNT occurs, allowing it to be used
  as a temporary store for copying files between SD cards.
* Increased size of the RAMdisk to 62K (4K was previously unnecessarily used
  as cache buffers).
* Fix for OPEN # being unable to open more than one file stream.
* Fix for bug in .DEFRAG dot command which could leave the file still
  fragmented, due to an incorrect check.
* Fix for the Multiface corrupting 2 bytes of memory at $6000.


v1.98N (2018-06-28)
===================
* Fixed up issuing of the CMD12 stop transmission command in DISK_STRMEND.
* Fixed up creation of zero-length files: the starting cluster had been set to
  $ffffffff instead of $00000000.
* The ARC bit is now set on newly-created, modified and renamed files.
* Fixed an issue where write errors on failing or write-protected cards were
  not always being picked up, causing operations to fail but appear to succeed.
* The IDE_BANK call and the BANK..NEW command now allocate banks starting with
  the highest-numbered free bank. This helps conserve low bank ids (helpful as
  Layer2's banks must be within the first 512K RAM chip).
* Added new rc_bank_available reason for the IDE_BANK call, which returns the
  number of currently-free banks of the specified type.
* Added a new .MEM dot command, providing information on available memory.
* Fixed SPECTRUM command to reset the return stack, as 48K BASIC doesn't
  support the new control structures.
* Fixed incorrect calculation of card capacity for SDSC cards (<=2GB).
* Adjusted output of capacities and filesizes to always round up to the next
  KB/MB/GB for any fractional part.
* Memory contention is now always disabled during NextZXOS operation for maximum
  performance, but re-enabled when loading snapshots or TAP files to ensure
  compatibility with legacy games/demos.
* Updated PALETTE OVER to write the transparency value to the new sprites
  transparency register ($4b) as well as the global transparency register ($14).
* Added the new sprites transparency register ($4b) to the multiface debug
  status page.
* Reset/NEW/PALETTE CLEAR now re-initialise the transparency fallback colour
  register ($4a) to zero (black).
* Fixed Timex mode saving/restoring in the multiface, ensuring the Timex register
  is only read/written at points when Timex modes are enabled.
* Renamed ROM and SYS files to reflect English language versions, and the change
  from Gosh Wonderful to Looking Glass ROM. The filenames are now:
    enNextZX.rom, enNextLG.rom, enNxtmmc.rom, enNextMf.rom, enOvrly.sys,
    enEsxemu.sys, enMf1.sys.
  The correct menu lines for config.ini therefore now take these forms (for VGA):
    menu=ZX Spectrum Next,2,0,enNextZX.rom,enNxtmmc.rom,enNextMf.rom
    menu=ZX Spectrum Next/LG,2,0,enNextLG.rom,enNxtmmc.rom,enNextMf.rom
* Added a new helper, textview.bas, for viewing TXT/DOC/INI/CFG files. This now
  displays such files at 14MHz regardless of currently-selected speed.
* Improved performance of TAP helper, tapload.bas, by running at 14MHz.
* Improved error reporting in .DEFRAG dot command.

v1.98M (2018-06-24)
===================
* Added new M_SETCAPS hook to set additional capabilities in the esxDOS API.
* Added capability to extend files using f_truncate/f_ftruncate without erasing
  the newly-allocated section to zeros (giving a performance increase).
* Added .DEFRAG dot command for defragmenting files.
* Fixed .INSTALL/.UNINSTALL dot commands to show usage information if no filename
  provided.

v1.98L (2018-06-23)
===================
* Multiface replacement now saves/restores the current ULA palette and sets
  the standard Spectrum colours.
* Revamped the About page.

v1.98K (2018-06-22)
===================
* Various fixes for the Multiface +3 replacement:
    + Fixed crash on return in situations where MMU0 was ROM and MMU1 was RAM.
    + Fixed viewing of 8K bank $10 in the memory browser, and saving of this
      bank if part of a layer2 screenshot.
    + Fixed changing pages in Browser on return if system directory handle had
      been changed by loading an overlay or executing Browser within NMI.
    + Fixed corruption of 2 bytes in layer2 at address $3ff8 on return, if
      layer2 writes were enabled.
    + Updates & fixes to About page.

v1.98J (2018-06-21)
===================
* Various fixes for the Multiface +3 replacement:
    + Fixed crash/hang on entry if layer2 writes were enabled
    + Fixed installation of breakpoints straddling a 256-byte boundary in
      standard 16K RAM pages 5, 7 & 8
    + If breakpoints have been changed in memory, they are no longer overwritten
      with the original contents, but automatically disabled
    + If RAM is active in MMU0 or MMU1, the Multiface replacement can now be
      successfully used, provided that:
        (i) if RAM is in MMU0, the instruction at $0066 is PUSH AF
        (ii) if RAM is in MMU1, POP AF;RET occurs somewhere between $2002
             and $3f64 (if this is not the case, 4 bytes of MMU2 memory -
             assumed to be the ULA screen - will be corrupted on return)
    + Streaming operations are now cancelled before any Browser/file access
* Added "About" page.
* Added support for viewing .CFG and .INI files in the Browser.

v1.98I (2018-06-19)
===================
* Fixed a bug where memory corruption of RAM8 could occur if any of the debug
  tools options in the multiface replacement were used. This would typically
  affect BASIC programs used in layer 1,1 modes, or new Next software using RAM8.
* Space optimisations (particularly in messages) in multiface replacement to
  make room for new features.
* Added Find & Next search options to Memory Browser, allowing up to 8 hex/text
  bytes to be searched for in current bank or all currently-paged address space.
* Added Copy option to Memory Browser, allowing memory regions to be copied
  or moved.
* Added View option to Status page, allowing screen of currently-stopped
  program to be seen.

v1.98H (2018-06-17)
===================
* The "GW" version of the ROMs now includes the latest (v06) "LG" (Looking
  Glass) ROM from Geoff Wearmouth.
* Updated browser.cfg:
    + BMP files now return to the Browser after being displayed
    + Added support for NDR type (NextDaw Player)
* Added new breakpoints feature to the Multiface +3 replacement.
* Various fixes for the Multiface +3 replacement:
    + Fixed saving of 128K snapshots if the current RAM page is not 5 or 2
    + ROM memory is now correctly displayed (in Status & Memory Browser)
    + Directory handles now saved/restored, so interrupting the Browser is ok
    + Fix for spurious "?" being printed in Status/Memory Browser tools
    + Current editor colours and screensaver settings are now respected
* Fixed loading of ZX81 snapshots (broken in v1.98E) due to uncleared
  data in RAM 7 causing the ZX81 emulator to hang.
* Disabled Multiface replacement when ZX80/ZX81 snapshots are run (since
  non-Spectrum ROM cannot support it).

v1.98G (2018-06-14)
===================
* The "GW" version of the ROMs now includes a fix for a missing scroll prompt.
* Fix for incorrect flag returns from IDE_BROWSER call (broken by v1.98F).
* Added initial Multiface +3 replacement ROM with the following features:
    + 48K/128K snapshot saving
    + screenshot saving for current mode and layer 2 screens, plus shadows
    + TAP file input/output selection
    + TAP file input browser
    + POK file loader
    + register status viewer/editor
    + memory viewer/editor
    + memory bank saving
  The Multiface +3 replacement has the following known bugs/limitations:
    + hangs can occur if holding down a key in the TAP file browser
    + ROM data is not correctly displayed in the memory browser/status page
    + colours/screensaver settings are standard defaults, not user-selected
  Requires core .34 in order to allow 48K locked mode games to be interrupted
  Requires FW 1.07 and the following menu line(s) (or similar) in config.ini:
    menu=ZX Spectrum Next,2,0,enNextZX.rom,nextmmc.rom,nextmf3.rom
    menu=ZX Spectrum Next/GW,2,0,enNextGW.rom,nextmmc.rom,nextmf3.rom
* Updated browser.cfg:
    + TXT/DOC files are now displayed in 85-column hi-res
    + Added support for various screenshot types:
       - SCR   standard Spectrum screen (layer 0 or layer 1,1) as before
       - SLR   lo-res screen (layer 1,0)
       - SHR   hi-res screen (layer 1,2)
       - SHC   hi-colour screen (layer 1,3)
       - SL2   layer 2 screen

v1.98F (2018-06-04)
===================
* The "GW" version of the ROMs now includes the latest (v05) "LG" (Looking
  Glass) ROM from Geoff Wearmouth.
* Fixed RST $20 hook for exiting dot commands (previously crashed due to
  paging error).
* Fixed IM1 interrupt routine when the DivMMC ROM is active. This failed to
  save & disable layer2 write status early enough (ie before writing to DivMMC
  memory). To avoid the previously-required earlier write of a stack pointer,
  if the stack is within DivMMC RAM then the ISR is not called (this only
  occurs in the rare case of a dot-command which relocates its stack within
  its allocated 8K area).
* IDE_BROWSER call now returns the LFN of the selected file (in DE) as well as
  the short name (in HL).

v1.98E (2018-05-26)
===================
* Added support for SNX extension, acting like SNA but leaving the file open
  with handle=0 for further data loads under snapshot's control.
* Implemented additional separators ; and < for browser.cfg, controlling
  exit behaviour:
    FOO:.foo            after executing, returns to main menu (as currently)
    FOO;.foo            after executing, enters NextBASIC editor
    FOO<.foo            after executing, returns to Browser
* Updated default browser.cfg to use the new separators.
* Fixed bug where a space was added to the command line, leading some dot
  commands to include it as part of their filename argument. A colon is now
  added instead.
* Fixed the Browser to strip leading and trailing spaces from the user's input
  during rename/mkdir to prevent accidental creation of such filenames.
* Fixed bug where an unsuccessful copy or paste in the Browser prevented
  rename from being accepted until the current directory was changed.

v1.98D (2018-05-25)
===================
* The "GW" version of the ROMs now includes the latest (v04) "LG" (Looking
  Glass) ROM from Geoff Wearmouth.
* Implemented new command to select speed 0/1/2 (3.5/7/14MHz):
    RUN AT speed
* Implemented new commands to list the program (or banked section) starting
  from a particular procedure:
    LIST [#s;] PROC procname()
    BANK n LIST [#s;] PROC procname()
* Implemented new command to merge a range of program lines into a single
  line (separated with colons):
    LINE MERGE first,last
* On layers 1/2 (and in windows), PRINT AT y,x now uses character coordinates
  for consistency with layer 0 (although the number of lines/columns can change
  depending upon what character set size is selected and whether reduced height
  mode is enabled).
* On layers 1/2 (and in windows), added new positioning option to PRINT, which
  allows the print position to be specified in pixel coordinates (like PLOT):
    PRINT POINT x,y;
* Window control code 25 is now used to implement PRINT POINT, rather than the
  previous simple coordinate adjustment.
* When an error occurs, the listing in the NextBASIC editor is automatically
  adjusted to include the line that caused the error.
* The LAYER CLEAR command now also re-initialises the full-screen mode windows
  so settings like the character size are restored to defaults.
* The editor now uses its own window definitions instead of sharing BASIC's
  full-screen mode windows. This fixes issues like:
   + layer 1,2 (hi-res mode) seeming to default to 64/85 columns if that is
     the mode you usually edit in
   + Auto-running programs using layer 1,1 (standard ULA mode) defaulting to
     51-column mode if executed from the Browser
* The DISK_STRMEND call now returns the correct error code of esx_edevicebusy
  if it fails.
* Fixed a crash if an error (eg BREAK) occurs from the Tape Loader option.

v1.98C (2018-05-16)
===================
* Moved integer expression evaluator into a new overlay to free up space in
  the NextBASIC ROM.
* Fixed filesizes printed by CAT EXP (broken by v1.98B).
* Fixed integer array access via the IDE_INTEGER_VAR call.
* Ensure the error code is cleared when an error is trapped; this bug had meant
  it was previously impossible to cleanly finish a program with OK after any
  error had been trapped.
* Fixed cancellation of streaming reads at boot. Previously this only worked
  if the card being streamed from was (i) device 0; and (ii) still selected
  (ie no further disk i/o had occurred).

v1.98B (2018-05-12) [Requires core >= 1.10.31]
===================
* Added workarounds for reading register 7 (turbo) to avoid speed being
  inadvertently reduced from 14MHz to 7MHz when using layer2.
* Fixed incorrect border colour if BASIC is in layer2 mode and editor is in
  hi-res mode.
* Fixed "Nonsense in BASIC" errors sometimes occurring with READ (bug
  introduced by v1.98)
* Fixed bug in DEFPROC which prevented integer variable parameters from working
  in some circumstances (caused Q Parameter Error).
* Implemented support for keyboard/driver interrupts to occur whilst DivMMC
  is paged in, so drivers etc continue to be called during dot commands and
  BASIC commands that are implemented in the overlay (PLOT, DRAW, CIRCLE etc)
* Treat any .SNA file >64K as a 128K version.

v1.98A (2018-05-08)
===================
* Fixed TILE BANK/TILE DIM to set the correct system variables when in lo-res
  mode. This bug had prevented TILE from working correctly in lo-res.
* Added a test for BREAK during potentially long commands: LIST, CAT, COPY.
* Ensured that error report stays on screen until a new key has been pressed
  (previously would sometimes go straight to listing because eg BREAK was still
  held down).
* Added '0' key as alternative to ENTER on menus and Browser. This allows
  joystick navigation, provided it has been set up as the "cursor" type in
  the Next/TBBLUE settings.
* Reserved an extra DivMMC RAM bank (7) for future usage by NextZXOS.

v1.98 (2018-04-27)
==================
* Implemented support for executing portions of BASIC programs in additional
  memory banks, including the following commands:
    BANK n LIST [#s;][l]
    BANK n LINE l,m
    BANK n MERGE
    BANK n GOTO l
    BANK n GOSUB l
    BANK n PROC procname(paramlist) [TO resultlist]
    BANK n RESTORE [l]
* Integer loops may now be used in direct commands (previously doing this
  generated a "Direct command" error).
* Updated the Gosh Wonderful ROM to new "Looking Glass" ROM (v01) from
  Geoff Wearmouth, which supports extended mode symbols using just symbol-shift
  in 48K BASIC mode.

v1.97H (2018-04-08)
===================
* Fixed saving/restoring integer variable parameters in DEFPROC/ENDPROC,
  which previously resulted in a hang.
* Fixed integer variable names in LOCAL command, which previously produced
  a nonsense in BASIC error.

v1.97G (2018-03-12)
===================
* Fixed ide_stream_in and NEXT # command with driver ("D") channels, to
  wait for an available byte.
* Refactored keyboard i/o to use a special pre-installed driver (id 0)
  which can be replaced using the .install command and a suitable
  new driver file.

v1.97F (2018-03-06)
===================
* Fixed "out-of-screen" errors in NextZXOS mode (64/85cols), broken by v1.97E.
* Added checks to prevent special "." and ".." directories from being renamed,
  moved or erased.
* Fixed "invalid colour" errors when LISTing a legacy (48K) BASIC program
  containing embedded colour items.
* Partially implemented IDE_PATH for +3DOS drives, so CD "M:" can now be used.

v1.97E (2018-03-04)
===================
* Fixed problem where renaming a file sometimes resulted in the wrong LFN
  being deleted.
* Fixed crash in PLAY command with T (tempo) parameter.
* Fixed hang with out-of-range PRINT AT in windows (and LAYER 1/2 full-screen).

v1.97D (2018-03-03)
===================
* Fixed Browser to respond to shifted cursor right key (as well as 8); exposed
  by recent keymap changes.
* Fix for missing cursor in INPUT and Browser inputs etc (broken in v1.97C).
* Ensure snapshots are always loaded in layer 0.
* Ensure standard .SCR screenshots are loaded from the Browser in layer 0.

v1.97C (2018-02-28)
===================
* Fixed bug in window printing routines, where double-width/height printing
  routine overwrote calculator memories causing incorrect output of floating-
  point numbers.

v1.97B (2018-02-22)
===================
* Improved boot speed (typically ~3x faster from ROM load to menu display;
  this went from 3.6s to 1.2s on 16GB Toshiba FlashAir with 3 partitions).
* When tape loading occurs, border is set to red immediately so this is more
  obvious to the user.
* Fixed problems with automatic creation of .BAK files when overwriting existing
  files.
* Fixed swapping of Editor/BASIC modes and speeds etc if an error occured during
  evaluation of a standalone expression in BASIC or the Calculator.
* Prevented scroll pause occuring when using "Screen" option in 64/85 col mode.
* Fixed renaming problems in the Browser, where only the short filename was
  provided to edit for the last file in the list.
* Fixed moving of directories to ensure the ".." special entry is correctly
  updated to point to the new parent directory.
* Fixed editor so that following execution of a BASIC statement/program, the
  same lines are displayed as before (instead of returning to program top).
* Fixed cursors becoming hidden or orphaned when switching between 32/64/85
  columns in the Calculator.
* Fixed syntax-checking of PWD #n and CAT #n commands (broken by v1.97 changes).
* Fixed parsing of CAT command; now CAT- #n commands are correctly parsed.

v1.97A (2018-02-19)
===================
* Enabled use of Z80N PixelDn instruction in text output code for windows &
  layer 1/2 screens (requires core v1.10.17+).
* Fixed permanent INVERSE/OVER settings for layer 1/2 modes - these were being
  ignored.

v1.97 (2018-02-19)
==================
* Updated PLAY command to support turbosound. 9 strings may now be specified,
  with each set of 3 going to a different AY chip.
* Added L,R,S parameters to PLAY command: these confine the audio output for
  the current AY chip to either the Left or Right channels (or S to reinstate
  stereo).
* Reduced default volume to 13 when more than 3 PLAY strings are specified, to
  prevent clipping.
* Implemented DRAW, CIRCLE and POINT commands for all layer 1/2 modes. CIRCLE
  for layer 1/2 is implemented using Bresenham's algorithm for improved speed.
* Allow PLOT, DRAW and CIRCLE to include off-screen points on layer 1/2 modes,
  so clipped shapes may easily be drawn without invoking out-of-screen errors.
* Implemented support for temporary colour items for PLOT/DRAW/CIRCLE on layer 1/2.
* Fixed temporary colour item support in layer 1/2 PRINT/INPUT statements.
* Fixed corruption of UDGs S,T,U at NEW/reset.
* Fixed editor to display UDGs within strings correctly, instead of replacing
  them with new NextBASIC tokens.
* Started using more Z80N instructions where possible for speed & space-saving,
  particularly: NextReg, PixelAd, PixelDn, SetAe, PushVal.
  NOTE: This change means v1.97+ requires core 1.10.14+ to run stably.

v1.96A (2018-02-12)
===================
* Fixed TAP loader (TAPLOAD.BAS) to use the new "NEXT #n TO var" syntax.
* Fixed ON ERROR to replace existing error handler at current level, rather
  than installing an additional one.

v1.96 (2018-02-11)
==================
* Implemented procedures, with new DEFPROC, PROC, ENDPROC and LOCAL commands.
* Implemented error-trapping, with new ON ERROR, ERROR and ERROR TO commands.
* For consistency with PROC/DRIVER/ERROR commands, changed syntax of these
  commands:
    DIM #n,var                  -->     DIM #n TO var
    RETURN #n,var               -->     RETURN #n TO var
    NEXT #n,var                 -->     NEXT #n TO var
    BANK n PEEK offset,var      -->     BANK n PEEK offset TO var
  (This will also apply to the as-yet-unimplemented POINT command).
* Removed "Boot A:" menu option: unneeded as Browser will be made to auto-boot
  any disk images that it mounts.
* Remove NEW DATA/NEW EXP commands: these will later be replaced by .mkdata
  and .mkswap dot commands.
* Stubbed out FORMAT d$ command: this will later be done by .mkdsk and/or
  .format dot commands.
* Some refactoring to save space in the NextBASIC ROM.
* NOTE: Due to new commands being added, some token values have changed and
        saved NextBASIC programs may need to be re-edited to fix them.

v1.95B (2018-02-06)
===================
* Fixed assignments to elements of integer arrays.
* Corrected "Too many brackets" error to "Too many parentheses"
* Renamed modulus operator from % to MOD to avoid confusion with symbol
  introducing an integer expression.
* Removed unary + and - operators from integer expression evaluator, as all
  values are unsigned in range 0..65535.
* Removed negative STEP processing in integer loops.

v1.95A (2018-02-03)
===================
* Tape SAVEs no longer print "Start tape and press any key" message, so screens
  can be saved without being partly overwritten.
* INPUT now returns zero for an empty numeric input instead of causing a
  "nonsense in BASIC" error.
* After a "LIST n" command, the editor now uses "n" as the current line number
  being edited (as in 48K mode).
* Unsupported keys in menus now produce error beep instead of "success" click.
* Fix for various editing issues in NextZXOS command-line mode, leading to odd
  cursor movements and other problems.
* Fix for hang in editor after loading BASIC programs from the Browser with
  different line numbers to the previous program.
* Fix for various cursor issues in the Calculator, especially in hi-res modes.
* Fix for screen problems when switching column modes in the Calculator.
* Fix for crash when LAYER 1,3 is executed in NextZXOS command-line mode.
* Fix for extended mode cursor colour/shape not being updated when an
  unsupported key is pressed.
* Fix CLEAR to clear the screen in the current mode. Previously it could leave
  the mode in an indeterminate state, causing strange effects after a CLEAR
  or RUN in a non-standard mode.

v1.95 (2018-01-28)
==================
* Implemented LOAD/SAVE/VERIFY...BANK and LOAD/SAVE/VERIFY...LAYER commands,
  so banks and screens in any mode can now be loaded/saved to disk or tape
  (or .TAP).
* Minor fixes for LOAD/SAVE command syntax checking.
* Removed the BANK..LOAD/SAVE commands.
* Added RST $20 hook for dot commands to terminate and auto-start a loaded
  program.
* Increased maximum allowable size of RTC.SYS module to 512 bytes.
* Implemented support for installable device drivers, with new M_DRVAPI
  hook, IDE_DRIVER +3DOS call and DRIVER NextBASIC command.
* Removed the FORMAT LPRINT and FORMAT LINE commands.
* Updated Gosh Wonderful ROM to v1.33, compatible with Nirvana engines.

v1.94B (2018-01-18)
===================
* Dot commands are now started with BC=address of entire command line, as
  well as HL=address of command arguments
* Implemented M_GETHANDLE to allow dot commands >8K to read their own file.
* Implemented M_EXECCMD hook.
* Added new M_GETERR hook for reporting/retrieving esxDOS error messages.

v1.94A (2018-01-17)
===================
* Added support for setting the ULA clip window with the LAYER DIM command
* Implemented the COPY f$ TO #n command
* Improved COPY f$ TO SCREEN$/LPRINT/#n commands to cope with Unix (LF),
  Sinclair (CR) or DOS (CRLF) line endings
* Fixed an esxDOS error message

v1.94 (2018-01-15)
==================
* Major rework of BASIC parser to make space for new features
* Implemented LINE line,step command for renumbering BASIC program
* Implemented ERASE n,m command for erasing lines of a BASIC program
* Implemented ERASE command to erase entire BASIC program (can be used within
  c:/nextzxos/autoexec.bas, for example)
* Implemented REPEAT...[WHILE]...REPEAT UNTIL loops
* Ensured all BASIC commands accessing memory banks now respect allocations
  made by external programs using the IDE_BANK API call
* Implemented BANK CLEAR and BANK NEW commands to explicitly free/reserve banks
* Allow LAYER BANK command to be executed in any mode, and make layer2 banks
  owned by BASIC
* Added workaround for buggy esxDOS dot commands (eg .dumpmem) that create
  files but neglect to select write access for them
* Implemented new file streaming API, allowing files to be read under control
  of applications with minimal OS involvement (DISK_FILEMAP,DISK_STRMSTART,
  DISK_STRMEND hooks in esxDOS-compatible API)
* Major rework of esxDOS-compatible API layer, including various fixes
* Implemented the following esxDOS hooks:
    F_TELLDIR, F_SEEKDIR, F_REWINDDIR
    M_GETDATE, M_DOSVERSION, M_GETSETDRV
    F_UNLINK, F_CHMOD, F_STAT, F_RENAME
    F_FTRUNCATE, F_TRUNCATE, F_GETFREE
* Added enhanced versions of the following esxDOS hooks:
    M_DOSVERSION: providing info on version and mode (NextZXOS/48K mode)
    F_READDIR: returning long filenames (LFNs) if requested
    M_TAPEIN: allowing tape simulation mode to be selected
* Added new M_P3DOS hook, allowing programs and dot commands to easily
  access +3DOS/IDEDOS/NextZXOS API calls, using the RST $8 mechanism

v1.93C (2018-01-05)
===================
* Fixed default ULA colours; previous "normal" colours were too dark.
* Fixed PALETTE commands which were using an old out-of-date method to set 9-bit
  colour values, which the hardware no longer supports.

v1.93B (2018-01-02)
===================
* Fixed uninitialised variable in snapshot loader that could be overwritten
  by BASIC program presence (eg AUTOEXEC.BAS) and cause snapshot load to fail.
* Fixed printing of characters in layer2 which straddled an 8K boundary, due
  to incorrect re-initialisation of stride value.
* Added workaround to esxdos emulator for buggy dot commands (.dumpmem)
  which fail to set write mode when opening newly-created files.

v1.93A (2017-12-29)
===================
* Added patch to IM1 routine in 48K BASIC ROM so that games using BiFrost
  and Nirvana multicolour engines detect NextZXOS as a 128K Spectrum and use
  appropriate timing. (Patch not currently present in GW version of ROMs).
* Fixed v3 Z80 snapshot loading issue where port 1ffd value was not set if
  provided by the snapshot (and was incorrectly set to zero if not provided).
  Fixes some 128K snapshots which use the ROM before doing their own paging
  (eg Addams Family).

v1.93 (2017-12-23)
==================
* Integer expressions can now be used anywhere that a numeric value is required.
* Implemented fast FOR/NEXT loops with integer loop variables.
* Implemented ELSE command for use in IF..THEN..ELSE constructs.
* Fixed OPEN # to allow long filenames to be used.
* Various space-saving optimisations.

v1.92D (2017-12-22)
===================
* Disable Timex modes support before loading ZX80/1 snapshots, since some hi-res
  games otherwise accidentally change modes (eg Against The Elements).

v1.92C (2017-12-20)
===================
* Re-enabled support for second SD slot (previously disabled to save space during
  development).
* Fix for renumber routine generating incorrect hidden numbers in GOTOs/GOSUBs.
* Optimised file read operations to read complete sectors direct to destination
  instead of via sector buffers.
* Moved tape load trap to later on ($562->$569) to support certain games (eg
  Arc of Yesod 128).

v1.92B (2017-12-17)
===================
* Fixed bug in TAP loading causing some games to unnecessarily be loaded using
  a slow path, and taking much longer to load (eg Dizzy VII, Thanatos 128).
* Added border feedback during TAP loading which really does require the
  slow path to be used (eg Rainbow Islands).
* Fixed the banner in the TAP loader to align stripes correctly.
* Added "erasing..." information message during erase operations in the Browser.

v1.92A (2017-12-14)
===================
* Implemented support for optional tape simulation during TAP file loading
* Increased optional loading screen pause to 5 secs
* Fixes for various non-working TAP files:
   + Out of memory errors (eg Trans Am)
   + Corrected return values for blocks including part of the ROM (eg Rainbow
     Islands)
   + Fix to cope with Chase HQ 128 protection mechanism
* Fix for potential crash if syntax errors generated in IDE_BASIC API call
* Fix for infinite error-checking loop/crash in esxdos emulator if line numbers
  greater than 9999 entered
* Fix for crashes if default streams (0..3) left redirected to user-defined
  channels at BASIC error reports
* Fix for crashes in renumber routine due to stack corruption
* Fix SPECTRUM command to clear ZX printer buffer before entering 48K mode
* Browser fixes:
   + Fixed path display line to be cleared before updating (broken by v1.92)
   + Added "copying..." information message during copy operations

v1.92 (2017-12-12)
==================
* Implemented support for real-time clock, requiring valid RTC.SYS in the
  C:/NEXTZXOS directory, and a ZX Next with RTC module. This support provides:
   + date/timestamps when SD card files/dirs are created or updated
   + current date and time shown is shown in menus
* Re-write of expanded catalog command (CAT EXP). This now shows dates/times
  of files and exact filesizes.
* Updated the IDE_GET_LFN +3DOS call to also return time/date stamps and
  exact filesizes.
* Added new IDE_RTC call to query the current date and time.
* Implemented screensaver functionality.
* Added new SPECTRUM SCREEN$ command to select screensaver type and timeout.
* Implemented SPECTRUM CHR$ command to select editor columns (32/64/85).
* Implemented support for LOADing a C:/NEXTZXOS/AUTOEXEC.BAS program for setting
  desired defaults etc.
* Implemented support for LOADing a C:/NEXTZXOS/RUN.BAS program if RUN is
  executed when there is no BASIC program in memory.
* Changed the TILE and BANK...LAYER commands to use the new Z80N opcodes
  LDIX/LDIRX for improved performance.
* Fixed NextZXOS command line and Browser options to respect any user-defined
  colour schemes set using the SPECTRUM INK/PAPER/BRIGHT/FLASH/ATTR commands.
* Various fixes for user-defined colour schemes.
* Changed the scroll pause feature for windows to use an inverted block in the
  bottom right-hand corner instead of a flashing one, and to accept any key.
* Fixed crash in scroll pause feature if ENTER/CAPS/EXTEND/GRAPHICS pressed.
* Fix loading of 48K SNA snapshots where SP lies between $4000 and $4005. Not
  normally seen, but can be created by SNASM.
* Fixed TAP loader to clear all BASIC workspaces to prevent Out of memory errors
  loading some games (eg TransAm).

v1.91 (2017-12-05)
==================
* Fix for TILE commands hanging in invalid modes.
* Rainbow stripes in banners now look consistent with original 128K machines.
* Fixed loading of 128K SNA snapshots where page 7 was the "current" page (not
  properly fixed in v1.86).
* Added workaround to support some 128K TAPs (eg Thanatos 128K) which load the
  stack including returns into the original 128K syntax ROM.
* Fix for error reporting in PLOT command, which previously caused hangs.
* Re-enabled PLAY command (now loaded at boot from new overlay.sys file).
* Re-enabled renumber menu option (also present in overlay.sys).
* Improved dot command handling so that any files left open by the dot are
  automatically closed on exit, or if a BASIC error occurs.
* Added installable error handlers for dot commands on RST $8;defb $95.

v1.90 (2017-12-03)
==================
* Fix for RST$18/RST$10 calls in dot commands.
* Fix for command length returned by IDE_BROWSER call if wildcards used.
* Added workaround to allow some snapshots taken on 128/+2 machines whilst
  still in 128 BASIC (eg Slightly Magic) to run in the +3/NextZXOS configuration
  by trapping original 128K command class returns in ROM 2 and diverting to ROM 1.
* Fix for NextBASIC banner being left on-screen during direct command execution.
* Fix for crash if dot command executed after a previous dot command had
  abnormally terminated (eg BREAK in screen output)

v1.89 (2017-11-30)
==================
* Added remount/mkdir/rename/copy/paste/erase options to Browser
* Added fine-grain control of new Browser features in IDE_BROWSER API call
* Added new BANK...LAYER command for copying data between screen (in current
  mode) and memory, with optional raster operations
* Fixed TILE command to not write transparent pixels (NOTE: currently using
  standard Z80 instructions rather than faster Z80N ldix)
* Renumber menu option temporarily disabled due to lack of ROM space
* Fixed operation of TAB in text windows, and modes other than LAYER 0
* Fixed AY enable at boot
* Fixed RST $18 (call ROM3 routine) from dot commands

v1.88 (2017-11-26)
==================
* Rewrite of initialisation/NEW code
    + now initialises all 3 AY chips
    + fixed & improved border colour error "reporting" in memory test routine
    + fixed bug where streams 4+ would be left open across a NEW although their
      channels may have disappeared
    + ensure required peripheral settings (Timex modes on, DivMMC auto-paging off,
      turbo selection on, AYs on, multiface currently disabled)
* Fixed Browser to set the currently-selected drive for LOAD and SAVE operations
  as well as general disk operations
* Implemented lower-screen editing for Hi-res, so "screen" editing mode is now
  usable in 64/85 column modes
* The NextZXOS command line menu option now has a persistent mode, so BASIC always
  inherits the currently-selected editing mode (unlike the NextBASIC option,
  which still has distinct display modes for editing and BASIC)
* Extended mode symbols underneath keys Y,U,P,A,S,D,F,G now available with just
  symbol shift+key (copyright symbol is symbol shift+Q since P already has ").

v1.87 (2017-11-23)
==================
* Implemented line input handler for window channels. INPUT # may now be used
  with window, file, variable and memory channels as well as the standard "K"
  channel.
* Implemented new IDE_WINDOW_LINEIN call to perform line input on window channels.
* Implemented new IDE_INTEGER_VAR call to allow any of the new integer variables
  to be read or written.
* Implemented new REMOUNT command to allow removal/re-insertion of SD cards
* Fixes to esxdos m_tapein/m_tapeout functions:
    + in_open now automatically closes any current tape file
    + in_setpos fixed to work in blocks
    + undocumented in_getpos functionality added (cf .tapls disassembly)
    + in_pause implemented to allow pause at loading screen
    + added stack protection during tape load trap
    + fully-implemented all possible exit conditions from load trap
    + implemented save trap
* SPECTRUM command (with no parameters) now continues executing statements
  instead of terminating with an OK report (needed for TAP helper)
* Added a new TAP file helper program for loading TAPs from the Browser
* Improved system consistency validation: enNextZX.rom, nextmmc.rom and
  esxemu.sys now all stamped with current NextZXOS version number and validated
  at boot time.
* Fixed potential memory/stack corruption and hangs when switching between
  LAYER 0 and LAYER 1/2.
* Prevented keypress at BASIC report from being passed to the menu system
  (typically the user would press ENTER and the first menu item, ie Browser,
  would be automatically executed).

v1.86 (2017-11-14)
==================
* Complete re-write of windowing code:
    + Implemented all features in all modes, with the exception of line input
    + Optimised window character output routine in standard and Timex modes
    + Fixed opening window channels with OPEN #
    + Auto-pause is now enabled by default for the LAYER 1/2 screens (but
      disabled by default for user-defined windows in all modes)
* Browser optimisations and minor fixes
* Fixed loading of 128K SNA snapshots where page 7 was the "current" page
* Implemented IDE_BROWSER, IDE_BANK, IDE_BASIC and IDE_WINDOW_STRING API calls
  (NOTE: The BASIC BANK command doesn't yet respect/use IDE_BANK)

v1.85 (2017-10-27)
==================
* Fixed issue in tokenizer where required spaces were removed after keywords
  ending in $ or # (eg CHR$, OPEN#)
* Tweaked esxDOS error messages
* Streamlined available drives boot message
* Updated TILE command to support map widths up to 2048 (previously 256), and
  to support 16x16 tiles as well as 8x8 tiles
* Added TILE DIM and SPRITE DIM commands to set clip windows for layer2 and
  sprite layer (NB: sprite clip not yet working/available in hardware)

v1.84 (2017-10-25)
==================
* ROMs renamed (nxten2eE.rom -> enNextZX.rom, and p3divmmc.rom -> nextmmc.rom)
  NOTE: Don't forget to update your config.ini to reflect this
* esxDOS emulation layer is now loaded from a file, C:/NEXTZXOS/ESXEMU.BIN
* Implemented full error reporting for dot commands
* Fixed some issues with parts of dot command names and parameters sometimes
  being tokenized (eg /bin would be tokenized with BIN keyword)
* Fixed bug where dot command couldn't be entered as first statement on a
  program line (due to calculator accepting it as an expression)
* Fixed tokenisation problems preventing > and < being accepted in expressions
* Dot commands can now formally be executed from anywhere by starting name
  with . or / path character, eg to execute "mycommand" in current directory:
  ../mycommand
  (NOTE: Maximum 32 characters path/name in total)
* Parameterless dot commands supported by updated browser.cfg (if named with
  .dot extension)

