Home | YS MegaBasic Contents |
GETTING STARTEDLoading YS MegaBasic is simplicity itself. Just type: LOAD ""
YS MegaBasic is supplied on tape, together with another program called Sprite Designer; the latter allows you to design sprites easily for later use in your own programs. If you want to transfer the Sprite Designer program to Microdrive, just select the 'copy' option from the main menu. YS MegaBasic has a built-in transfer function - as soon as it's loaded, it'll ask you if you want to transfer YS MegaBasic to Microdrive; press the 'M' key if you do - if not, press any other key. Sinclair Research has distributed Interface 1 devices with two different ROMs, so if you're going to be using YS MegaBasic with Microdrives you'll have to sort out which Interface 1 ROM you have. The simple way to do this is to type: CLOSE #0: PRINT PEEK 23729
Should you get a '0' on-screen, you're the proud owner of an Interface 1 with an old ROM and, consequently, there's no need for any alterations to YS MegaBasic as it stands. However, if you get an '80' flashed on-screen, then you've got yourself an Interface 1 unit with a new ROM. To get full compatibility with YS MegaBasic, you'll need to type: POKE 47006,183
once the program has loaded. As long as you carry out this simple operation each time you load YS MegaBasic, there should be no problem. THE KEYBOARDOnce YS MegaBasic has loaded, you'll be greeted by a short copyright message and an inverse space in the bottom left-hand corner of the screen; this is the new cursor and it indicates where your input will be appearing. With YS MegaBasic the whole of the screen is now used for input instead (as with the normal Spectrum) of the screen being split into two parts.Try typing a few characters on the keyboard and you'll notice that the keys aren't producing their usual keywords ... instead you see just single characters. From now on, you'll have to type out each command in full rather than use the infamous keywords - a facility which transforms your Spectrum keyboard into something approaching that of a 'normal' computer. Although removing the keyword system has many advantages, the |
2 |
---|
change does have a drawback. Certain commands such as 'PRINT' could be typed in
just by pressing the 'P' key, whereas now you'll have to type out 'P', 'R', 'I', 'N'
and 'T'; for that reason, YS MegaBasic allows you to abbreviate many of the
keywords. Here follows a complete list of keywords and their new abbreviations; you can assume that keywords omitted from the list cannot be abbreviated and therefore must be typed out in full. Also note that an abbreviated keyword must finish with a full stop; for example, the abbreviation for 'CONTINUE' is 'CON.'.
The bottom line of the display is used to indicate the current mode of the cursor. Below is a table showing the normal Spectrum modes, along with the relevant on-screen message you'd expect on the bottom line.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
---|
THE EDITORThe line editing capabilities have been greatly enhanced by YS MegaBasic and, as a result, some keys produce different effects to those found on the standard Spectrum.
| ||||||||||||||||||||||||||||||||||||||||||
4 |
---|
Note first, however, that the screen is split up into three different sections
or windows - for more information on windows see page 6 - and each is used for
a specific task: window zero displays user input and error messages; window
one displays automatic listings produced by the line editor; window two
displays all output produced by Basic commands; and window three is used by
the front-panel, see page 20. When YS MegaBasic is first loaded you may think
there's only one window on-screen; you'd be wrong - in fact, there are four, all
of which overlap. Note too that a second cursor may be used to copy text from another part of the screen to the 'input' cursor. This cursor appears as a flashing square on- screen and can be moved around the current window via a number of pre- programmed control keys. The 'copy' cursor will only function in windows zero, one and two. As well as using Caps Shift '1' to edit the current line it's possible to edit any line in the program using the 'EDIT_' command. This command is followed by a numeric expression that shows which line is to be edited. If the required line doesn't exist, then the next program line is used; if there's no next line then the "Line not found" error message is displayed on-screen. USER-DEFINED KEYSIt's possible to program the top row of keys to produce strings of up to 255 characters. To program a user-defined key, you use the 'KEY_' command, followed by a numeric expression and a string expression (separated by a comma). The numeric expression defines which key is to be programmed, and the string expression provide the means. Placing an 'ENTER' character (CHR$13) at the end of a string will enable the key to execute itself automatically. To save you defining your own 'RUN' and 'LOAD' keys, YS MegaBasic already includes them:
CONTROL KEYSDuring RUN-time the Space key is used as a new Shift key. Consequently, to obtain a space between characters, both the Symbol Shift and Space keys must be pressed simultaneously. The Space key - when used together with another key - will from now on be referred to as the Control key. Here follows a number of Control functions available during RUN-time. | ||||
5 |
---|
| ||||||
6.a |
---|