Precautions During Programming
FP0
8
−
7
8.3 Handling Index Registers
8.3
Handling Index Registers
8.3.1
Index Registers
Like other registers, index registers have two points, IX and IY, for reading and writing
16-bit data.
Use an index register to indirectly specify a memory area number. (This is also called
index modification.)
Example:
Transferring the contents of data register DT100 to the number
specified by the contents of an index register.
R0
F0 MV, DT100, IXDT0
Base memory area.
In this example, the number of the destination data register varies depending on the
contents of IX with DT0 acting as a base. For example, when IX contains K10 the
destination will be DT10, and when IX is K20, the destination will be DT20.
In this way, index registers allow the specification of multiple memory areas with a single
instruction, and thus index registers are very convenient when handling large amounts
of data.
8.3.2
Memory Areas Which can be Modified with Index Registers
Index registers can be used to modify other types of memory areas in addition to data
registers DT.
IXWX0, IXWY1, IXWR0, IXSV0, IXEV2, IXDT100
Constants can also be modified.
IXK10, IXH1001
An index register cannot modify another index register.
IXIX, IXIY
When using index modification with an instruction which handles 32-bit data, specify
with IX. In this case, IX and IY are handled together as 32-bit data.
Lower 16-bit area
Higher 16-bit area
Contents of IX
Contents of IY
Содержание FP0 Series
Страница 14: ...Table of Contents FP0 xii ...
Страница 16: ...Overview FP0 1 2 ...
Страница 82: ...S LINK Control Unit FP0 4 2 ...
Страница 95: ...Chapter 5 I O Allocation 5 1 I O Number 5 3 5 2 Control Unit 5 4 5 3 Expansion I O Unit 5 5 ...
Страница 96: ...I O Allocation FP0 5 2 ...
Страница 100: ...I O Allocation FP0 5 6 5 3 Expansion I O Unit ...
Страница 102: ...Installation FP0 6 2 ...
Страница 112: ...Installation FP0 6 12 6 5 Installation Using FP0 Flat Type Mounting Plate ...
Страница 114: ...Wiring FP0 7 2 ...
Страница 198: ...High speed Counter Pulse Output PWM Output FP0 9 34 9 5 PWM Output Function ...
Страница 200: ...General use Serial Communications FP0 10 2 ...
Страница 210: ...Self Diagnostic and Troubleshooting FP0 11 2 ...
Страница 220: ...Specifications FP0 12 2 ...
Страница 234: ...Dimensions FP0 13 2 ...
Страница 241: ...Dimensions FP0 13 9 13 6 Detailed Specifications of Cables 13 6 Detailed Specifications of Cables ...
Страница 243: ...Chapter 14 Appendix ...
Страница 380: ...14 138 14 7 ASCII Codes ...