Left margin, 48 bytes

FRONT COVER PAGE 1 PAGE 2 PAGE 3 PAGE 4 PAGE 5 PAGE 6 PAGE 7 PAGE 8 PAGE 9 PAGE 10 PAGE 11 PAGE 12 PAGE 13 PAGE 14 BACK COVER


The Spectrum 128 only checks each line as you enter it, so it does not guarantee that the program as a whole is correct. Nor is it a mind-reader. If you type


10 PRINT "Hellop"


the line will be accepted. The computer cannot know that you meant to type "Hello".


Correcting your program


If you make any typing mistakes or just want to change something, the BASIC editor lets you make corrections very easily using the keyboard. And if you have a keypad, this has extra keys which give you more control over moving around and deleting parts of the program.


Moving around


Try moving the cursor around the program using the cursor keys on the keyboard

[Right arrow] moves the cursor one character to the right
[Left arrow] moves the cursor one character to the left
[Up arrow] moves the cursor up one line
[Down arrow] moves the cursor down one line

If you have a keypad, these movements are duplicated by the red cursor keys. You also have these additional keys

[Double right arrow] moves the cursor as far as the begining of the next word
[Double left arrow] moves the cursor as far as the next space to the left
[Double up arrow] moves the cursor up 10 lines of the program - this will not work unless you have more than 10 lines in your current program
[Double down arrow] moves the cursor down 10 lines of the program - this will not work unless you have more than 10 lines in your current program
[Bar and double left arrow] moves the cursor to the start of the BASIC line
[Double right arrow and bar] moves the cursor to the end of the BASIC line


Deleting program entries


You can erase mistakes by using the [DELETE] key on the keyboard to delete the character to the left of the cursor.

If you have a keypad, this offers several extra delete keys.

[DEL and left arrow] deletes the character to the left of the cursor
[DEL and right arrow] deletes the character which the cursor is on

You can delete larger amounts by using the following keys on the keypad. To prevent unwanted erasures you must hold down [SHIFT] at the same time as pressing these keys.

[DEL and double left arrow] deletes as far as the next space to the left of the cursor
[DEL and double right arrow] deletes from the character under the cursor, as far as the next space to the right
[DEL and bar and double left arrow] deletes from the left of the cursor to the beginning of the line
[DEL and double right arrow and bar] deletes from the character under the cursor to the end of the line


The 128 BASIC commands


Press [EDIT] (or [CMND] if you have a keypad) to bring up the Options menu which offers these commands.

128 BASIC options menu screenshot, 2430 bytes

This works like the main menu-you move the cursor up and down with [Up arrow] and [Down arrow], and use [ENTER] to select your option.


128 BASIC


Selecting this returns you to the BASIC screen if you have selected the command Options menu by mistake.


Renumber


This automatically alters the line numbers of the current BASIC program so that it starts at line 10 and goes up in steps of 10. It also changes any references to the line numbers which appear within the lines (such as GOTO 200, for example). This is most useful when you have developed a program by adding new BASIC lines between the originals. You can use the command to tidy up the program by spacing it out to absorb the new additions.


Screen


This option changes the size of the BASIC program screen. Instead of your program occupying the whole screen area, it can be displayed in just the bottom two lines. The small screen is mainly used when you are saving a screen display or copying it to a printer - confining the program to an off- screen area ensures that it does not overwrite the display which you want to keep.


FRONT COVER PAGE 1 PAGE 2 PAGE 3 PAGE 4 PAGE 5 PAGE 6 PAGE 7 PAGE 8 PAGE 9 PAGE 10 PAGE 11 PAGE 12 PAGE 13 PAGE 14 BACK COVER