"carlsson" wrote:
>> The CPC has commands like INK, PAPER, BORDER.
>> The Amstrad CPC can also access these commands
>> by using control codes in PRINT statements, but for
>> type-ins, it's not good for people typing in stuff like
>> that! ;-)
> Exactly. You can do this:
> 10 INK 5
RINT "HELLO" or
> 10 PRINT CHR$(whatever);CHR$(5);"HELLO" but not
> 10 PRINT INK 5;"HELLO"
Well, the first one is still Invalid. It looks at though
INK on the Spectrum is the same as PEN on the CPC.
PEN 5 would give you the colour of whatever 5 is.
The second line would be something like this on an
CPC:
print chr$(15);chr$(colour);"HELLO" - colour can be
anothing from 1 to 15. Of course this is based on the
PEN command for the CPC.
The third is definitely out.
INK on an CPC is used to assign a colour to a colour
number. There is 27 colours you can choose from &
upto only 16 are allowed (depending on which screen
mode you're in), so in low res it's 16, mediam res 4
& high res 2. But you can still use 27 colours for any
of those screen modes. So if you wanted Bright White
text & you're in PEN 1 a INK 1,26 would give you
bright white text. For a black background (usually 0
is the default) it's INK 0,0: But of course like PEN
which changes the colour of the text, PAPER is used
to change the background value.
> The Oric Basic is supposedly a halfway illegal exact
> copy of Microsoft Basic, as it was licensed for the
> Microtan 65 but later reused without a license for
> the Oric computers. It is dog slow too, which was
> partly explained to me in a newsgroup by the
> number of times per second the computer is
> scanning the keyboard etc, and that it is done in
> a crude way.
I wouldn't agree with that, I've typed in some game
which was a basically a version of Missile Command
from the Atari. I thought it was quite good. But to be
honest, I haven't really tested this BASIC to see
what the strengths & weaknesses are.
Cheers,
CP/M User.