Справочник Пользователя для Mitsubishi Electronics QnUCPU

Скачать
Страница из 630
CHAPTER9 DEVICES
9
2
3
4
5
6
7
8
9.
10 
 P
o
int
e
r (P
)
  
9
 
-
 
71
9.10  Pointer (P)
(1) Definition
The pointer (P) is a device used in jump instructions (CJ, SCJ, or JMP) or subroutine call instructions (such as 
CALL).
(2) Applications
Pointers can be used in the following applications.
 • Specification of the jump destination in a jump instruction (CJ, SCJ, or JMP) and a label (start address of the 
jump destination)
 • Specification of the call destination of a subroutine call instruction (CALL or CALLP) and a label (start 
address of the subroutine program)
(3) Pointer types
There are the following two different pointer types.
 • Local pointer (
The pointer used independently in each program
 • Common pointer (
The pointer that can be called in all running programs by the subroutine call instruction.
(4) Number of available pointer points
The number of points available for the pointer is 4096.
Remark
For the jump instructions and subroutine call instructions, refer to the following.
 QCPU Programming Manual (Common Instructions)
Figure 9.85 Program using a pointer
P0
CALL   P0
FEND
RET
END