Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
–, –P
- 166 -
{ –, –P ... BIN 16-bit subtraction
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3
S1
{
{ { { { { {
{
{ { { { { { { { { {
S2
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
4
-P
S2
S1
D
-
S2
S1
D
-
-P
Subtraction command
Setting data (See *2)
S2
S1
No. of device to store subtraction
results.
D
S
Subtraction data or No. of device
where subtraction data is stored.
(The subtracted results are stored
in this device.)
D
Setting data (See *1)
Subtraction command
-
-P
-
S
D
-P S D
Subtraction data or No. of device
where subtraction data is stored.
Subtraction data or No. of device
where subtraction data is stored.
Subtraction data or No. of device
where subtraction data is stored.
Function
(1) The device designated with S1 (D of *1) and the device designated with S2 (S of *2) are
subtracted, and the subtracted results are stored in the device designated with D.
-
S
D
,
-P S
D
5678 (BIN) 1234 (BIN) 4444 (BIN)
B15
…………………B0 B15…………………B0 B15…………………B0
D
S
D
*1
-
S2
S1
D
,
-P S2S1 D
5678 (BIN) 1234 (BIN) 4444 (BIN)
B15
…………………B0 B15…………………B0
S1
B15…………………B0
S2
D
*2
(2) -32768 to 32767 (BIN 16-bit) can be designated in S1, S2 and S.