Editor
The editor takes advantage of Spectrum Next's tilemap display mode which can displays 80x32 characters. The editor uses the top line for a menu and the bottom two lines for status information. Astrum will, by default, load the last file it was editing. You can prevent this file from loading by holding down the Symbol Shift key whilst Astrum is loading.
If you are bringing source code to Astrum then read Some words about source code
Menu
The top line menu can be opened using SS + W. Items can selected with up and down cursor keys or using the hightlighted key. Keys for using the menus:
| SS + Q | Move back to File menu |
| SS + W | Open or close current menu |
| SS + E | Next menu. Cursor left and right can also be used |
Mouse
A PS/2 mouse can now be used to access the menu system and to change cursor position. A left click will move the cursor to that position. A right click in the rightmost or leftmost column will move to a new position in the document based on the position relative to the top of the screen. Click at the top for the start of the document and near the end for the bottom of the document. You can also use the mouse wheel to move the cursor's location up and down the document. By default, this mouse functionality is turned off. You can turn it on from the Settings menu item in the Help menu.
Edit Keys
| INV VIDEO | Page down |
| TRUE VIDEO | Page up |
| ENTER | New line below current line |
| CS + ENTER | New line above current line |
| SS + ENTER | Split line at cursor |
| EDIT | Menu |
| GRAPH | End of line |
| CS + SPACE | Next tab |
| SS + A | ~ |
| SS + S | | |
| SS + D | \ |
| SS + F | { |
| SS + G | } |
Extended keys
Press EXTEND MODE. The border and status area will go red and wait for a key:
| T | Top of document |
| B | Bottom of document |
| S | Start of line |
| E | End of line |
| F | Find |
| A | Find again |
| I | Find next use of symbol under cursor |
| D | Find definition of symbol |
| G | Goto line |
| O | Toggle insert/overwrite |
| P | © |
| V | Paste cut or copied block |
| J | Join next line |
Some commands (Top, Bottom, Find, Find Definition, Goto) drop a temporary bookmark. This is so you can look around and then go back. You can go back with EXTEND 6. There may be multiple steps and you can go forward with EXTEND 7. Explicit temporary bookmarks can be dropped with EXTEND 0.
In order to keep source files small Astrum uses a single space to separate label from opcode or opcode from arguments. If there is no label then just a single space is used at the start of the line. Astrum automatically formats this into correctly indented code in the editor. Of course this can cause an issue for source that uses a different format.
| SS + E | Delete to end of line |
| SS + Q | Delete to start of line |
| SS + F | Toggle auto format. |
| SS + A | Assemble |
| SS + S | Save |
| SS + X | Delete current line (or marked block) |
| SS + Delete | Delete to right (remains in extend mode) |
You can mark the start of a line with ;* and a digit 1-4. You can then navigate back to the bookmark with the extend keys:
| 1 | Goto bookmark 1 ;*1 |
| 2 | Goto bookmark 2 ;*2 |
| 3 | Goto bookmark 3 ;*3 |
| 4 | Goto bookmark 4 ;*4 |
Marking blocks
There are two kinds of blocks: line and part-of-line
To mark a line block press EXTEND MODE then up or down. The block is shown in bright yellow. Once you have marked a number of lines you can press:
| EDIT | Cancel block mark |
| C | Copy block (if no block marked it copies current line) |
| X | Cut block (if no block marked it cuts current line) |
| SS + X | Delete block |
Marking parts of a line
You can mark part of a line by pressing EXTEND MODE and then left or right.