DEFSEG

Function

DEFSEG defines the page of RAM addressed by subsequent CALL, PEEK or POKE commands.

Syntax

DEFSEG = page no.

Example

DEFSEG=1

sets RAM page to 1

DEFSEG may also be used as part of an expression

PRINT DEFSEG*3

Remarks

Page no. is an expression from 0 to the last page in the system. When HUNTER is powered up, DEFSEG is set to 0. This is the TPA or workspace, most often used for machine code programs called from Basic.

After a program error, DEFSEG is set back to 0.