Positron Compiler Documentation

AddressOf

Source: Positron16 Compiler User Manual, PDF page 327

Syntax

Assignment Variable = AddressOf ( Variable or Label )

Overview

Returns the address of a variable in RAM, or a label in code memory. Commonly known as a pointer.

Parameter

Variable or Label can be any variable type used in the BASIC program, or it can be a label name, in which case, it will return the code memory address. Assignment Variable can be any of the compiler's variable types, and will receive the variable's or label's address.