Appendix AInstruction Set
544
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
FLOATING POINT DIVIDE
FDIV, jFDIV
(141)
FDIV Dd Dr R
Divides one floating point value by another
and outputs a floating point result. The
rightmost seven digits of each set of two
words (eight digits) are used for mantissa, and
the leftmost digit is used for the exponent and
its sign. Bits 12 to 14 give the exponent value
between 0 and 7. If bit 15 is 0, the exponent is
positive; if it’s 1, the exponent is negative.
÷
Dd+ 1 Dd
Dr+ 1 Dr
R+1 R
Dd:
CIO
G
A
T/C
DM
Dr:
CIO
G
A
T/C
DM
R:
CIO
G
A
DM
326
ARITHMETIC PROCESS
APR, jAPR
(142)
APR C S R
The operation of APR(142) depends on the
control word C. If C is #0000 or #0001,
APR(142) computes sin(
Θ) or cos(Θ) and
outputs the result to R.
Θ is contained in S in
units of tenths of degrees (0
°≤Θ ≤ 90°).
If C is an address, APR(142) computes the
value of a function from the data in S and
outputs the result to R. The function is a series
of line segments (which can approximate a
curve) entered in advance in a table beginning
at C.
C:
CIO
G
A
#
DM
DR
IR
S:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
DR
IR
328
HOURS TO SECONDS
SEC, jSEC
(143)
SEC S R
Converts a time given in hours, minutes, and
seconds (S and S+1) to an equivalent time in
seconds only (R and R+1). S and S+1 must be
BCD and within one data area. R and R+1
must also be within one data area.
S:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
349
SECONDS TO HOURS
HMS, jHMS
(144)
HMS S R
Converts a time given in seconds (S and S+1)
to an equivalent time in hours, minutes, and
seconds (R and R+1). S and S+1 must be
BCD between 0 and 35,999,999 and within the
same data area. R and R+1 must also be
within one data area.
S:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
350
CALENDAR ADD
CADD, jCADD
(145)
CADD C T R
Adds the time in words T and T+1 to the
calendar data in words C, C+1, and C+2, and
outputs the result to words R, R+1, and R+2.
C:
CIO
G
A
T/C
DM
S:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
350
CALENDAR SUBTRACT
CSUB, jCSUB
(146)
CSUB C T R
Subtracts the time in words T and T+1 from
the calendar data in words C, C+1, and C+2,
and outputs the result to words R, R+1, and
R+2. The time and calendar formats are the
same as in CADD(145).
C:
CIO
G
A
T/C
DM
S:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
352