44
3
3 Elements3.7 Register
1) Example of 16-bit address indexing applications:
Because: D10Z0 = D (10 + 2) = D12
D100V5 = D (100 + 7) = D107
Which is equivalent to:
MOV D12 D107
2) Example of 32-bit address indexing applications:
Because:
D10Z0=D[10+(V0,Z0)]=D[10+12]=D22
D100Z5=D[100+(V5,Z5)]=D[100+34]=D134
Which is equivalent to:
DMOV D22 D134
3) Special example of constant-based address indexing
Z0 plus K5, and the result is sent
to D10 while the Z0 value
When the V and Z indirect addressing method is used in the loop instructions (V and Z change with the
loop variables) for operation on data zones in batches or table query, the programming is simplied and the
instruction efciency is improved.
3.7.3 File Register R
The H3U supports 32,768-point 16-bit le registers. The le register R is used in the same way as that of
the data register D. For details, see
“3.7.1 Data Register D” on page 42
.