Sie sind auf Seite 1von 6

Derby++ User Guide

strings (not DIMensioned) are saved


when you SAVE your program.
Getting started
The other menu options have the
following effects:
After powering on the computer, use the
cursors and Enter to select 128 BASIC • Loader - Open the esxDOS NMI
browser (when using divIDE,
Enter, unless you want to start the Tape divMMC and so on). When you
Loader). The copyright message is autoload programs from the NMI
displayed. Press Enter again to start the browser they run using the menu
editor. ROM (similar to USR0 mode). If this
causes compatibility problems, try
loading from 48 BASIC or 128
BASIC instead. Loads the auto file
on a TNFS file system (when using
Spectranet).
• Tape Loader - Hold Enter when
selecting 128 BASIC to get this
option. You can use this after
mounting a tape in the NMI
browser to run programs that
require a 128 BASIC environment
There are a number of differences from (for example, splATTR).
48 BASIC, the UK version of 128 BASIC, • Diagnostics - Run the Spectrum +2
and even the original Spanish version of test program (RS232 test requires a
128 BASIC on which this version is loopback adapter).
based. For example, there is no • 48 BASIC - Selects ROM 1 (the
SPECTRUM command (because you can original 1982 version of BASIC) and
select 48 BASIC from the boot menu). lock paging. Use this for programs
You should take time to familiarize that trigger 128 paging (for
yourself with the unique features of the example Jet Pac), or perform a
fastest version of 128 BASIC. ROM checksum (for example Travel
with Trashman).
There are two differences that are not • TR-DOS - Enters the TR-DOS
immediately apparent. The first is that command line (requires BetaDisk
almost all of the bugs in 48 BASIC, and interface or esxDOS TR-DOS
all the bugs in 128 BASIC are fixed. The emulation). Commands are typed
second is that variables are persistent, out in full. The RETURN command
that is they are not CLEARed when you is ignored; press the reset button to
RUN a program. This is because it would return to the boot menu. Programs
be very annoying to lose all the work you run using the menu ROM (similar to
had done in the full screen simple string USR0 mode). If this causes
editor before you had saved it. Simple compatibility problems, try loading
from 48 BASIC or 128 BASIC
instead. You can enter the TR-DOS program listing. You can edit your
command line from BASIC by program directly from this area. From the
entering PRINT USR 15616. Lower screen you can enter direct
commands (DELETE, EDIT, RENUM,
If you have a 32K ROM machine, you WIDTH), use the running calculator, or
should use ROM2/ROM1. Under enter program lines. The Status line
esxDOS you will boot in USR0 mode. displays the mode (EXTEND or GRAPH)
You can lock paging from the Dr Slump and if CAPS LOCK is enabled. You can
NMI browser. You can switch to 128 change the editor colours using the
BASIC with the .128 command (or OUT standard commands (BORDER, INK and
32765,16). In 128 BASIC you will have PAPER).
to enter symbols the same way you do in
48 BASIC and some symbols may clash
with the extended editing commands.
Using the keyboard
Note: HiSoft BASIC will not work
because it requires the UK Spectrum 128
The keyboard functions differently from
editor ROM to run. However, programs
48 BASIC. Commands are typed out in
compiled with it will run as normal.
full, and EXTEND mode is not needed,
except to enter embedded control codes
or use the extended editing functions. To
Using the editor produce a symbol, hold Symbol Shift and

press the key the symbol appears on. The


The editor comprises three areas: exception to this is the copyright symbol
(©) which is produced by pressing
• Upper screen
Symbols Shift+I. When CAPS LOCK is
• Lower screen
enabled, pressing Shift produces
• Status line
lowercase letters.

Using the extended


editing functions

The extra editing functions originally


provided on the numeric keypad, are
remapped to the main keyboard:

SCREEN = Edit, DEL = Symbol Shift+E


When the editor starts, the cursor is in PG UP = Extend D, PG DN = Extend F
the Lower screen, above the Status line. HOME = Extend Z, END = Extend X
You can switch the cursor between the
Upper and Lower screens by pressing
Edit. The Upper screen displays your
Entering control codes Entering direct
commands
You can use EXTEND mode to directly
enter control codes, just like in 48 BASIC.
But in 128 BASIC you will see the hidden Direct commands cannot be used in your
codes represented by a GG enter programs and can only be entered from
any characters between the two Gs or the Lower screen.
you will produce an error.
DELETE f, l - Delete lines f to l. To
Extend n - INK (0 to 7) delete a single line n enter DELETE n, n.

Extend Shift+n - PAPER (0 to 7) EDIT n - Edit line number n.

Extend 8 - BRIGHT 0 EDIT s$ - Edit the simple string s$ in the


full screen editor.
Extend 9 - BRIGHT 1
RENUM [l [,s]] - Renumber the
Extend Shift+8 - FLASH 0 program starting at line l in steps of s.

Extend Shift+9 - FLASH 1 WIDTH c - Set the column width of the


RS232 device to c columns.
True Vid - INVERSE 0

Inv Vid - INVERSE 1


Using TurboSound AY
Use reserved words 128 BASIC supports up to six channels of
as variables audio using the TurboSound AY
interface. You can use the PLAY
command as normal, but if a second AY
In 48 BASIC you can use reserved words chip is available, channels 4 to 6 will
as variables. But if you try to do this in make use of it. For example, PLAY
128 BASIC, the variable is converted to a "c","g","e","C","G","E". If only one AY chip
token. However, the tokenizer has two is available, these channels will be
modes of operation. If CAPS LOCK is ignored. However, all eight channels will
enabled when you press Enter, only still be sent to a MIDI device if it is
words in all CAPS are tokenized. For connected.
example, LET Let = 1 would be accepted.
If CAPS LOCK is not enabled, everything
is tokenized. Variables are case
insensitive, so you can enter them as
lowercase or mixed case.
You can use the full range of
Using ULAplus mathematical functions and variables
from BASIC. Enter your calculation and
press Enter. The results are displayed in
ULAplus provides up to 64 colours on the Upper screen. Because you can also
screen at once using four CLUTs (colour enter program lines from the Lower
look up tables). Each CLUT is made up of screen, if you want to enter a positive
eight INK colours and eight PAPER number on its own you must prefix it
colours. A CLUT is selected by combining with a plus sign (+). To clear the
the value of the BRIGHT and FLASH bits calculator memory, enter *0.
of the attribute to give four possible
values. However, you cannot combine
colours from different CLUTs in a single Using the full screen
attribute cell. Derby++ simplifies this by
providing a default palette that enables simple string editor
you to choose any INK or PAPER from a
16 color palette without having to think
about CLUTs. From the Lower screen, enter EDIT s$,
where s$ is a simple (non-DIMensioned)
To enable ULAplus enter PALETTE 64,1 string you want to edit. The Status line is
(you can switch it off again with similar to the one in 128 BASIC. It
PALETTE 64,0). The default palette uses displays the mode (EXTEND or GRAPH)
the same numbers for colours as the and status of CAPS LOCK (shown by
standard Spectrum palette (0 is still whether the status line is in uppercase or
black). You set INK and PAPER as lowercase). But it also shows the cursor
normal. However, BRIGHT now only mode (INSERT, INDENT or REPLACE)
applies to INK. To do the equivalent for and if wrap is on or off.
PAPER, use FLASH. Whereas the
standard Spectrum palette has 15
colours, in the default ULAplus palette,
bright black is in fact dark grey.

Note: If you want to redefine the default


palette to continue to function as a 16-
color palette, you must set palette entries
in each CLUT (four times for each
colour).

Using the running


calculator

128 BASIC provides a running calculator


that you can use from the Lower screen.
Press Symbol Shift+Q to change the
cursor mode: Using esxDOS
• INSERT - As you type, the content
is inserted at the cursor position. Derby++ enables you to use esxDOS
• INDENT - Works like insert mode, with 128 BASIC. The editor is completely
but when you press Enter, the next rewritten to prevent crashes caused by
line is indented by five characters. the host hardware paging memory when
• REPLACE - As you type, the executing instructions in certain memory
content replaces content after the areas.
cursor position.
After you start the editor, if the first
Press Symbol Shift+W to change the command you want to enter is an
wrap mode: esxDOS command, you must first type
REM and press Enter. Any command will
• ON - If a word breaks across a line, do, but this is necessary to flush the error
it is moved to the next line. stack that esxDOS uses to interpret
• OFF - Words are allowed to break commands.
across lines.
You must enter esxDOS commands in
The extra editing functions originally lowercase, but ensure CAPS LOCK is
provided on the numeric keypad, are enabled before you press Enter. This is
remapped to the main keyboard: because the 128 BASIC tokenizer
converts uppercase characters to tokens
EXIT = Edit, DEL = Symbol Shift+E
before esxDOS evaluates the line. For
PG UP = Extend D, PG DN = Extend F
example .MORE would be converted to
HOME = Extend C, END = Extend V
.M OR E
These editing functions perform a move, You can enter esxDOS commands that
unless Symbol Shift is held, in which case .LS in
they perform a delete: uppercase, but it is better to get into the
habit of always entering them in
< WRD = Extend A, > WRD = Extend S lowercase.
< LINE = Extend Z, > LINE = Extend X
If you want to use an esxDOS command
as the first command in a BASIC line, you
must prefix it with a colon. Otherwise
the running calculator will treat the
command as an undeclared variable. For
example, 10 : .ls.

Das könnte Ihnen auch gefallen