beautypg.com

I/o direct, Data direct, Atmega161(l) – Rainbow Electronics ATmega161L User Manual

Page 14

background image

14

ATmega161(L)

1228C–AVR–08/02

Operands are contained in registers r (Rr) and d (Rd). The result is stored in register d
(Rd).

I/O Direct

Figure 11. I/O Direct Addressing

Operand address is contained in six bits of the instruction word. n is the destination or
Source Register Address.

Data Direct

Figure 12. Direct Data Addressing

A 16-bit data address is contained in the 16 LSBs of a two-word instruction. Rd/Rr spec-
ify the destination or source register.

0

63

0

5

n

OP

15

P

I/O MEMORY

OP

Rr/Rd

16

31

15

0

16 LSBs

$0000

$FFFF

20 19

Data Space