45-46

From C64-Wiki
Jump to navigationJump to search

The Zeropage addresses 45-46 ($2F16-$3016), labelled VARTAB contains the 16-bit address of the start of BASIC variables.

The value stored here is always the first address after the end of a BASIC program text. This is why, in immediate mode, editing ANY line of BASIC text has the same effect as issuing the CLR statement. All variables are reset because the end of BASIC text may have (and probably has) moved, requiring the value in VARTAB to change.