Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
9 - 72
9.10.1 Local pointer
(1) Definition
The local pointer is a pointer that can be used independently in jump instructions and subroutine call instructions
in each program.
The same pointer number can be used in respective programs.
(2) Number of local pointer points
The local pointer can be divided for use of all the programs stored in the program memory.
The local pointer number ranges from P0 to the highest number of the local pointer in use. (The CPU module's
system computes the number of points used.)
Even if only P99 is used in a program, for example, the number of points used will be 100, which is from P0 to
P99.
For using the local pointer for several programs, use the pointers in ascending order starting from P0 in each
program.
The total is 600 points when the pointer is used as shown below.
Figure 9.86 Using the same pointer in respective programs (local pointer)
Figure 9.87 Concept of the local pointer points
Program BProgram A
P0P0
CALL P0
FEND
RET
END
CALL P0
FEND
RET
END
The same pointer
No. can be used.
Example
Program A
Using P0 to P99
100 points of
P0 to P99 occupied
Use of P0 to P99
occupies 100
points.
Use of P0
occupies 1 points.
300 points of
P0 to P299 occupied
200 points of
P0 to P199 occupied
Program B
Using P100 to
P199
Program C
Using P299 only
Total of 600 points are used.