Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

MOV Rd,Rr

Rd = Rr

0 <= d <= 31, 0 <= r <= 31

PC = PC + 1

001011rdddddrrrr

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.

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,0x11  ; Compare r16 to 0x11
        ...
        ret             ; Return from subroutine

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRe

1

AVRxm

1

AVRxt

1

AVRrc

1