Multiborder



Campbell Black and

Alasdair Hobbs,

Junpier Green,

Midlothian



Enhance your Spectrum screen displays with a multicoloured

border. This machine-code routine can be called instead of

using a Pause 0. It can be customised by your program to

give between two and six coloured borders.

  A few pokes are required before calling the routine. Poke

65089 with the number of colours required in the border.

Poke 65081 with the number corresponding to the first

colour, poke 65082 with the number corresponding to the

second colour, and so on. Finally, call the routine with

        RANDOMIZE USR 65000

  The border will remain multicoloured until a key is

pressed. The addresses are summarised in table 1.

  Examine the demonstration listing to see how all the

above was achieved from within a Basic program.



  Table 1.

 Start address   65000

 No. of Colours  65080  Poke with a number between 2 and 6

 1st colour      65081  Starting here, poke the required

 2nd colour      65082  number of addresses with a number

 3rd colour      65083  in the range 0-7

 4th colour      65084  0=black 1=blue 2=red 3=magenta

 5th colour      65085  4=green 5=cyan 6=yellow 7=white

 6th colour      65086