6 I/O Memory Areas
6-40
CJ2 CPU Unit Software User’s Manual
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.
Save
Restore
Instructions using the index
register
Function
block
Instructions using the index
register
[MOVL IR0 Temporary internal address]
P_On
P_On
[MOVL Temporary internal address IR0]
Set the required contents in the
index register inside the function
block definition.