EasyManua.ls Logo

Atmel AVR

Atmel AVR
191 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
79. MOV – Copy Register
79.1. Description
This instruction makes a copy of one register into another. The source register Rr is left unchanged, while
the destination register Rd is loaded with a copy of Rr.
Operation:
(i) Rd ← Rr
Syntax: Operands: Program Counter:
(i) MOV Rd,Rr 0 ≤ d ≤ 31, 0 ≤ r ≤ 31 PC ← PC + 1
16-bit Opcode:
0010 11rd dddd rrrr
79.2. Status Register (SREG) and Boolean Formula
I T H S V N Z C
Example:
mov r16,r0 ; Copy r0 to r16
call check ; Call subroutine
...
check: cpi r16,$11 ; Compare r16 to $11
...
ret ; Return from subroutine
Words 1 (2 bytes)
Cycles 1
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
123

Table of Contents

Related product manuals