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 (256-byte aligned region) 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
- PAGE=<numeric>
- <n-var>=PAGE