IDEC MICROSmart FC6A Series User Manual page 495

Windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Index Registers
16 index registers (P0 to P15) can be used, and the data type of the index register is L (long).
Example: LOD M10:P0
• P0=-3
This indirect addressing indicates M0005, which is 3 bits
behind of M0010.
M0010:P0
Index register
P0
-3
• P0=10
This indirect addressing indicates M0022, which is 10 bits
ahead of M0010.
M0010:P0
Index register
P0
10
LOD Instruction
M0005
3
M0006
-3
2
M0007
1
M0010
LOD Instruction
M0010
1
M0011
2
M0012
+10
3
M0013
4
M0014
5
M0015
6
M0016
7
M0017
8
M0020
9
M0021
10
M0022
FC6A S
MICROS
ERIES
• P0=5
This indirect addressing indicates M0015, which is five bits
ahead of M0010.
M0010:P0
Index register
P0
5
U
'
M
FC9Y-B1722
MART
SER
S
ANUAL
8: I
NSTRUCTIONS
LOD Instruction
M0010
1
M0011
2
M0012
+5
3
M0013
4
M0014
5
M0015
R
EFERENCE
8-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents