
255
CHAPTER 5 DEVICES
5
5.
5
Index Regist
er/
S
ta
ndard
D
e
vice Regist
er
(Z
)
5.
5.
1
Index R
e
gi
ster
(Z
)
5.5
Index Register/Standard Device Register (Z)
5.5.1
Index Register (Z)
The index register is used for indirect specification (index modification) in programs. Index modification uses one point
of the index register.
The index register has 20 points (Z0 to Z19).
(1) Bit structure of the index register
One point of the index register consists of 16 bits, and data can be read or written in units of 16 bits.
Link register data are handled as signed data. In the case of the hexadecimal notation, 0000
H
to FFFF
H
can be stored.
However, because the most significant bit represents a sign bit, decimal values that can be specified are -32768 to 32767.
(2) Using in a 32-bit instruction
The processing target is Z
n
and Z
n+1
. The lower 16 bits correspond to the specified index register number (Z
n
),
and the higher 16 bits correspond to the specified index register 1.
When Z2 is specified in the DMOV instruction, Z2 represents the lower 16 bits and Z3 represents the
higher 16 bits.
(The most significant bit in a 32-bit structure is a sign bit.)
Specify the index register by one point
(16 bits).
Zn
b15
to
b0
The most significant bit is a sign bit.
Ex.
Ex.
Z3
Lower 16 bits Upper 16 bits
Z2
Processing target: Z2, Z3
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......