Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!sunic.sunet.se!doc.news.pipex.net!pipex!uknet!bhamcs!comlab.ox.ac.uk!imc
From: imc@comlab.ox.ac.uk (Ian Collier)
Subject: Re: Info needed on system vars
Message-ID: <6213.imc@comlab.ox.ac.uk>
X-Local-Date: Wednesday, 8th March 1995 at 2:02pm GMT
Originator: imc@msc2.comlab
Organization: Oxford University Computing Laboratory
References: <3jhkpg$ado@infa.central.susx.ac.uk>
Date: Wed, 8 Mar 1995 14:02:40 GMT
Lines: 37

In article <3jhkpg$ado@infa.central.susx.ac.uk>, mppu3@central.susx.ac.uk (Conor McMenamin) wrote:
>  Can anyone tell me a bit more about the "system variables" memory area
>of the spectrum? I think it sat after the screen attributes, and the
>uses of each address were listed in the manual.

The system variables extend from 23552 (just after the printer buffer) to
23733 (just before the channel information).  The Interface 1 adds a few
extra just after this.  The 128K machines have extra system variables in
the printer buffer.

>                                                I'm particularly
>interested in the BORDER colour information (not the BORBCR data at
>5C48H, which is the attributes for the command line part of the screen,
>but the actual BORDER colour. Could the BORDER be BRIGHT?

If you are not interested in the BORDCR system variable then why mention the
system variables?...

Anyway, the border is set to one of colours 0-7 by outputting the colour
value to port 254 (in addition set bit 3 to turn the MIC off; bit 4 controls
the speaker).  The border itself is never bright.

The bottom two lines of the screen are coloured according to the BORDCR
system variable.  These can be bright, but are usually the same dark
colour of paper as the border and have either black or white ink.  Each
time the spectrum beeps (for example each time a key is pressed) the paper
colour from BORDCR is output to port 254 to set the border.

Ian Collier - Departmental Lecturer (and perpetual postgrad student) -
imc@comlab.ox.ac.uk - Oxford University Computing Laboratory, Wolfson
Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including Spectrum
section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html

New to this group?  Answers to frequently-asked questions can be had from
http://www.nvg.unit.no/spectrum/ .
>New< - Visit the Sam Coup FAQ at:
http://whirligig.ecs.soton.ac.uk/~tsp93/Coupe/FAQ.txt .
