Set the border colour

Example code to set the border colour on the Spectrum’s screen

The border colour is managed by the ULA. Changing the border colour is simply writing the required colour to the ULA whilst storing a copy in the BORDCR system variable at 0x5C48 so that the OS also knows what the colour is.

In this example we set the Border to black

Set the Spectrum Screen Border:
LDA,0x00Set border to black
LD(BORDCR),ASet OS copy of border colour
OUT(&FE),ASet hardware border colour

Last modified November 3, 2021: Add additional notes to DISPLAYFILE (3a7f050)