Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF (EN)

129 To get this on the screen you will need to type >MODE 7 >PRINT "ABC";CHR$(129);"DEF";CHR$(130);"GHI";CHR$(132);"JKL" You will see that there is a space on the screen between the letters ABC and the letters DEF . That space is in fact occupied by an invisible ‘control code’. The control code ‘appears’ on the screen as a spce but it affects everything to its right. The control code at position 3 is code number 129 and that has the effect of turning all letters and numbers that follow into red. The code at position 7 is number 130 which produces green alphanumerics (letters and numbers).

Here is a list of a few more control codes 129 Alphanumeric red 130 Alphanumeric green 131 Alphanumeric yellow 132 Alphanumeric blue 133 Alphanumeric magenta 134 Alphanumeric cyan 135 Alphanumeric white To change the colour of the text To get these codes on the screen you have to type PRINT CHR$(X) just before the text you want to alter, where X stands for the code you want.

Often you will wish to put the codes in between two words and you do that by placing both the words and the CHR$(X) in one long PRINT statement as shown below 10 MODE 7 20 PRINT "WHITE";CHR$(131);"YELLOW";CHR$(135);"AND BACK TO WHITE" To make characters flash Another code, 136 , makes everything that follows on that line flash. Try 10 MODE 7 20 PRINT "HELLO";CHR$(136);"FLASHER!" It must be emphasised that every line starts off in white, non-flashing, normal height, black background and so on. If you want to print a whole page in red letters then every line must start with control code 129 .

You should by now understand how to put the control codes into a PRINT statement and now we can see what other effects are available.