VARPTR
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Retrieves the memory-address of a variable. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> ...")
(Created page with "= <span class="f_Header">Action</span> = Retrieves the memory-address of a variable. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> ...")
Latest revision as of 20:57, 12 February 2013
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 |
---|