Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

SER Rd

Rd = 0xFF

16 <= d <= 31

PC = PC + 1

11101111dddd1111

Description

Loads 0xFF directly to register Rd. (Equivalent to instruction LDI Rd,0xFF).

Status Register (SREG) and Boolean Formula

I

T

H

S

V

N

Z

C

Example:

      clr  r16       ; Clear r16
      ser  r17       ; Set r17
      out  0x18,r16  ; Write zeros to Port B
      nop            ; Delay (do nothing)
      out  0x18,r17  ; Write ones to Port B

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRe

1

AVRxm

1

AVRxt

1

AVRrc

1