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 + QMove back to File menu
SS + WOpen or close current menu
SS + ENext 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 VIDEOPage down
TRUE VIDEOPage up
ENTERNew line below current line
CS + ENTERNew line above current line
SS + ENTERSplit line at cursor
EDITMenu
GRAPHEnd of line
CS + SPACENext 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:

TTop of document
BBottom of document
SStart of line
EEnd of line
FFind
AFind again
IFind next use of symbol under cursor
DFind definition of symbol
GGoto line
OToggle insert/overwrite
P©
VPaste cut or copied block
JJoin 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 + EDelete to end of line
SS + QDelete to start of line
SS + FToggle auto format.
SS + AAssemble
SS + SSave
SS + XDelete current line (or marked block)
SS + DeleteDelete 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:

1Goto bookmark 1 ;*1
2Goto bookmark 2 ;*2
3Goto bookmark 3 ;*3
4Goto 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:

EDITCancel block mark
CCopy block (if no block marked it copies current line)
XCut block (if no block marked it cuts current line)
SS + XDelete block
You can write out the current block from the Block and menu. Alternatively you can join a file from the same menu.

Marking parts of a line

You can mark part of a line by pressing EXTEND MODE and then left or right.