GET-UNSIGNED-SHORT function

Returns the unsigned 16-bit value at the specified memory location as an INTEGER value.

Syntax

GET-UNSIGNED-SHORT ( source , position )
source
A function or variable that returns a RAW or MEMPTR value. If source is the Unknown value (?), GET-UNSIGNED-SHORT returns the Unknown value (?).
position
An integer value greater than 0 that indicates the byte position where you want to find the information. If position is greater than the length of source, the AVM returns the Unknown value (?). If position is less than 1, the AVM generates a run-time error.

Examples

For examples of how to use the GET-UNSIGNED-SHORT function, see the GET-BYTE function reference entry.

Notes

See also

LENGTH function, PUT-SHORT statement, RAW function, RAW statement, SET-SIZE statement