Skip to Content

PAGE (PA.)

A pseudo-variable controlling the starting address of the current user program area. It addresses the area where a program is (or will be) stored.

PAGE=&3100 PRINT ~PAGE PAGE=TOP+&100: REM Move to start of next page.

PAGE is automatically initialised by BBC BASIC(Z80) to the address of the lowest available page in RAM, but you may change it.

If you make PAGE less than its original value or greater than the original value of HIMEM, you will get a ‘Bad program’ error when you try to enter a program line and you may well crash BBC BASIC(Z80).

If you make PAGE greater than HIMEM, a ‘No room’ error will occur if the program exits to command level.

With care, several programs can be left around in RAM without the need for saving them.

USE WITH CARE.

Syntax

<n-var>=PAGE

Associated Keywords

TOP, LOMEM, HIMEM

Last updated on