LOADADR

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Loads the address of a variable into a register pair. <span style="font-family: Arial;"> </span> <span style="font-family: Ari...")

Latest revision as of 22:00, 11 February 2013

Contents

Action

Loads the address of a variable into a register pair.

 

 

Syntax

LOADADR var , reg

 

 

Remarks

var

A variable which address must be loaded into the register pair X, Y or Z.

reg

The register X, Y or Z.

 

The LOADADR statement serves as an assembly helper routine.

 

 

 

Example


Dim S As String * 12
Dim A As Byte
 
$ASM
loadadr S , X ; load address into R26 and R27
ld _temp1, X ; load value of location R26/R27 into R24(_temp1)
$END ASM

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