VARPTR

From MCS Wiki AVR
Jump to: navigation, search

Contents

Action

Retrieves the memory-address of a variable.

 

 

Syntax

var = VARPTR( var2 )

var = VARPTR( "var3" )

 

 

Remarks

Var

The variable that receives the address of var2.

Var2

A variable to retrieve the address from.

var3

A constant

 

Sometimes you need to know the address of a variable, for example when you like to peek at it's memory content.

The VARPTR() function assigns this address.

 

See also

NONE

 

 

Example


Dim W As Byte
Print Hex(varptr(w)) ' 0060

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language