Professional Documents
Culture Documents
(Lecture-9)
R S Ananda Murthy
Associate Professor
Department of Electrical & Electronics Engineering,
Sri Jayachamarajendra College of Engineering,
Mysore 570 006
D 7 . . . . . . . . . . . .D 2 D 1 D 0 Addr.
R0 0x00 Most instructions can access
R1 0x01 any register and complete
operation in one CPU clock cycle.
R2 0x02
...
...
There is also a 16-bit Stack Pointer.
R13 0x0D
R14 0x0E
R15 0x0F
Last three register pairs given below
R16 0x10 can be used as three 16-bit index
R17 0x11 registers to point at data memory.
... ...
15 XH XL 0
X-Register D7 . . . . . . . . . . D2 D1 D 0 D7 . . . . . . . . . . D2 D1 D 0
R27 (0x1B) R26 (0x1A)
15 YH YL 0
Y-Register D7 . . . . . . . . . . D2 D1 D 0 D7 . . . . . . . . . . D2 D1 D 0
R29 (0x1D) R28 (0x1C)
15 ZH ZL 0
Z-Register D7 . . . . . . . . . . D2 D1 D 0 D7 . . . . . . . . . . D2 D1 D 0
R31 (0x1F) R30 (0x1E)
Register pairs R27 and R26, R29 and R28, R31 and R30
known as X, Y, and Z registers can be used as 16-bit
address pointers for indirect addressing of the data space.
32 x 8 General
Purpose
Registers
Carry Bit
8 8
Bit 7 6 5 4 3 2 1 0
0x3F (0x5F) I T H S V N Z C SREG
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value 0 0 0 0 0 0 0 0