Electron User


Advanced Basic Editor Plus
By ACP/Pres
Acorn Electron

 
Published in Electron User 6.12

A powerful new Basic program editor gets a thorough preview by Roland Waddilove.

Advanced Basic Editor Plus

One of the most powerful and complex utility roms available for the Electron, Advanced Basic Editor Plus, is about to be launched by Pres. It was originally produced by Acorn for the BBC Micro, but now Pres has converted it for the Electron, adding a few enhancements along the way.

It is available as either a ROM cartridge or ROM module - a bare ROM in a small carrier that can be plugged in to a ROM socket. The cartridge is priced at £36.80 and the ROM at £28.69 aren't cheap by Electron standards, but like many Pres products, are compatible with the BBC Micro and Master.

Plug the cartridge into the Plus 1, type *BE and the editor takes over, offering more than 30 commands, plus another fourteen from a utilities menu accessed using the UTILS command.

The best description of Advanced Basic Editor Plus is that it combines the features of View with Basic's built-in program editor. Like Basic, the editor has LOAD and SAVE commands, however, once loaded, the program isn't listed with LIST - like View you tap the Escape key and go to text editor mode.

The program is listed on the screen and, like View, you can move the cursor around the screen and type in either insert or overwrite mode. New lines can be created simply by hitting Return. A space is opened up and a line number is automatically chosen for you. If necessary, the program is renumbered to make room to make room for a new line number.

Like View, it has global search and replace facilities. This is useful for renaming variables, for instance, a single command will replace all occurrences of *delay* with *pause*. A marker can be placed in the listing and a single command will take you back to that point. It's useful for remembering your position when browsing forward or backward through the listing.

Moving the cursor to the top or bottom of the screen scrolls the listing up or down. You can also jump forward or backward one screen at a time or to the first or last line with a single keypress. Scrolling can be disabled if you prefer.

Pressing Escape takes you back to command mode where you have the options to save your modified program, run it or return to Basic. Once back in Basic, the program is stored at PAGE like any other, so you can load, list, save, modify or run it as you like.

Advanced Basic Editor Plus is more than a aimple text editor, it has a whole host of utilities and commands designed to make the process of entering and modifying programs much quicker and easier.

It will compact a program, taking out REMs and blank lines, shortening variable and procedure names and linking short single statement lines together to make long multi-statement ones. The process can be reversed to a certain extent - it can't replace your comments however, but it will split multi-statement lines.

Programs can be listed in a formatted style rather like LISTO7, but also splitting multi-statement lines. The output can be sent to the printer as well as the screen.

The Advanced Basic Editor Plus is most useful for structured programmers that avoid GOSUBs and the often abused GOTO statement. However, if you must use them labels can be substituted instead of line numbers. These take the form of

110
120 GOTO Where
130
.
.
.
340
370 REM Where
380

The program can't be run with these labels as they are used for editing purposes only. The NUMBER command instructs the editor to replace all label references with the correct line numbers.

Merging programs is simple using the intelligent APPEND command. It takes a file from tape or disc and adds it to the end of the one in memory. Don't worry about line numbers clashing, as the imported program will be renumbered to continue from the last line of the resident one.

The only problem experienced with the software was with the VLIST command, which can be used to display all the variables used and their values after running a program, I was so eager to try out the Basic Editor I didn't read the manual, loaded a program and entered *VLIST x; the result was one crashed micro.

The fact that I've got every ROM and add-on except the kitchen sink plugged into my Electron may have something to do with it, and the command does work if entered correctly.

Apart from that minor glitch, I was very impressed with the Advaned Basic Editor Plus. It is probably the most powerful software to be released for the Electron for a long time. If you spend a large proportion of yoour time entering, editing, running and debugging Basic program listings I can fully recommend this most useful package.

The BASIC Editor Plus

Program size : 3182
Bytes free   : 13458
Screen mode  : 6

>INFO

Scroll on
Overtype mode
White on blue

Program name: EXPERT
Last search : None

Tab value   : 5      No.of lines: 162
First line  : 10     Last line  : 1620
Current line: 10     Marked line: None

Pending commands: None

Roland Waddilove

Other Acorn Electron Game Reviews By Roland Waddilove


  • The Hacker Front Cover
    The Hacker
  • Electron ADFS E00 Front Cover
    Electron ADFS E00
  • Mouse Trap Front Cover
    Mouse Trap
  • Tarzan Boy Front Cover
    Tarzan Boy
  • View Front Cover
    View
  • Golf Front Cover
    Golf
  • Hopper Front Cover
    Hopper
  • Golf Front Cover
    Golf
  • Elkman Front Cover
    Elkman
  • Joe Blade II Front Cover
    Joe Blade II