Handling Index Registers - Panasonic AFPX-C30R User Manual

Fp-x series
Hide thumbs Also See for AFPX-C30R:
Table of Contents

Advertisement

14.3 Handling Index Registers

14.3.1 Index Registers
• Like other registers, index registers have 14 points, I0 to ID, 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.
In this example, the number of the destination data register varies depending on the contents of I0 with
DT0 acting as a base. For example, when I0 contains K10, the destination will be DT10, and when I0 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.
14.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.
<Example> I0WX0, I0WY1, I0WR0, I0SV0, I0EV2, I0DT100
• Constants can also be modified.
<Example> I0K10, I0H1001
• An index register cannot modify another index register.
<Example> I0I0, I0I1
• When using index modification with an instruction which handles 32-bit data, specify with I0. In this
case, I0 and I1 are handled together as 32-bit data.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents