Entering and Editing

BASIC-SO

In the Command Mode, the RUBOUT key deletes the last entered character each time you press it, and backspaces the cursor on a CRT. On a teletype, or with RMX/SO BASIC-SO, RUBOUT echoes the last-entered character. If you then press CR, the program statement is entered without the rubbed-out characters. If you enter new characters and then press CR, the new characters appear in the line.

Suppose you enter 52 instead of 55.To erase the 2, press RUBOUT:

30 A=8*52 •

30 A=8*5 •

If you press RUBOUT again, the 5 is deleted:

30 A=8* •

To change 52 to 37, press RUBOUT twice, then 3, 7:

30 A=8*52 •

30 A=8* •

30 A=8*37 •

When using the Edit Mode, RUBOUT works somewhat differently. Refer to the Editing Program Text Section for details.

Control-R displays the line as corrected, still waiting for more input:

30A--=8xx*522537 (Control-R) A = 8*37

To cancel a line, simply press Control-X.

Editing Program Text

Intel ISIS-II BASIC-SO has an Editing Mode used to change individual characters, or entire lines. The Editing Mode has its own set of subcommands and syntax. Table 3-1 briefly describes each of the subcommands. If an illegal character is entered, the terminal beeps and the character is ignored.

Table 3-1. BASIC-80Editing Subcommands

Function

Syntax

 

 

To delete text:

[integer] 0

To insert text:

I character [character. ..]

To delete all characters to the right of the cursor

H character [character... ]

and insert text:

 

To insert characters at the end of the line:

X character [character...]

To search for a character:

[integer] S character

To delete all characters until specified character:

[integer] K character

To change next n characters to y characters:

[integer] C character [character...]

To restore original line and leave Edit Mode:

Q

To restore original line and restart Edit Mode:

A

To print balance of line and restart Edit Mode:

L

To leave Edit Mode and keep changes:

E

To leave Edit Mode, keep changes, and print the

Carriage return

edited line:

Rubout

To delete unwanted characters:

To place one logical statement line on two or more

Line Feed

physical lines:

 

To leave next n characters unchanged:

[integ.er] space

 

 

3-2

Page 24
Image 24
Intel 9800758-02 manual 30 A=8*52 30 A=8*37, 30 A--=8xx*522537 Control-R a = 8*37