LESSON 9 OF 13
SCREEN MEMORY
Drawing anywhere on the screen without PRINT.
The screen is 1000 cells, 40 across and 25 down, and each cell is a byte in memory starting at 1024. Cell (row Y, column X) is at 1024 + Y*40 + X. Write a screen code there and the character appears instantly.
Screen codes are not the same as CHR$ codes: 1 is A, 32 is a space, 81 is a filled circle, 160 is a solid block. The full table is in the glossary.
Each cell has a colour too, in a parallel block starting at 55296. Poke a colour number there to colour the character. If you forget, the character may be invisible — same colour as the background.
Type with the keyboard under the screen, or tap the blue screen to use your phone's own keyboard. While a program runs, keys go to INPUT and GET. When it says READY., type a line and press RETURN to run it straight away.