6 I/O Memory Areas
Additional Information
The contents of an index register used inside a function block may be corrupted when the func-
tion block is called. Always save the contents of the index register before calling the function
block and then restore the contents after leaving the function block. Set the required contents in
the index register inside the function block.
Instructions using the index
register
Instructions using the index
register
6-40
Function
block
Save
P_On
[MOVL IR0 Temporary internal address]
Set the required contents in the
index register inside the function
block definition.
Restore
P_On
[MOVL
Temporary internal address IR0]
CJ2 CPU Unit Software User's Manual