esxDOS Editor beta version 0.9b =============================== Programmed in August 2021 by NaMcO (NeXGeN software) esxDOS editor is a simple file editor designed for esxDOS on the ZXSpectrum. Syntax is (name subject to change) .editor . If a filename is not provided, a short help screen will be displayed and you will be returned to BASIC. Upon loading the file, you are in the HEX/ASCII mixed view. On top you can see the filename with a maximum of 12 characters, (more will be truncated), then the current offset from the start of the file (in HEX) and the curent page you are in. Page will always be zero in ASCII-only mode. Below there is the data view, depending on the mode with or without HEX. Below the data view, you can see the current byte below the cursor, then the file total size (in HEX) and current file access mode. Below this, there's the menu. From here you have the following commands: Immediate control ================= Cursor Keys = Move the cursor around the page. TRUE/INV Video = Navigate through the file (previous and next 512 bytes) Menu Options ============ ZONE = Swaps cursor between the HEX or ASCII section. Only works in the HEX/ASCII view obviously. ASCII = Toggles between the HEX/ASCII or ASCII-only views. Name and command key might change for the final version. EDIT = Enter edit mode. Depending on which zone/view you are, you can edit HEX or ASCII directly on the page. Finish with ENTER. SAVE = Save current 512 bytes on tape or SDCard. SDCard save is NOT IMPLEMENTED YET AS OF v0.3 READ = Read the current 512 bytes from the file again. If you edit something and want to undo the edit, this is the best way. WRITE = Write the current 512 bytes to the file. If the file mode is "rd" (read-only), you will receive an error. INFO = Displays some information about what's below the cursor. 16-bit number in Decimal, Hexadecimal and Binary. THEME = Change editor theme. Cycle between cyan/black/yellow/white. MODE = Change file access mode (read-only or read-write). Added as a measure of security to prevent accidental writes. PAGE = Simply enter a new page to navigate to. Only available in HEX/ASCII mode. There are 4 pages of 128 bytes (0 - 3). QUIT = Return to BASIC. Preserves original colours, CAPS state, etc. BLOCK = Enter a new file block to navigate to. No checks are done whatsoever for the input (yet), so make sure you input a CORRECT block offset in 32-bit hexadecimal, eg. 00000F80 TODO (MAYBE): ============= - Support for an .ini file containing default theme and a font file to use instead of default Known bugs as of v0.9b ============================================================== ; Entering a new page going back (eg, page 3 to page 1) sometimes is not updating file pointer information correctly (minor) ; Enter new block sometimes is not updating file pointer information correctly (minor)