Section 10. Processing Instructions
10-5
Instruction 45: Integer Value of X
This instruction takes the integer (INT) portion of X and places the result in an
input location.
PAR.
DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for INT(X)
[Z]
Input locations altered: 1
Instruction 46: X Mod F
This instruction does a modulo divide of X by F and places the result in an input
location. X MOD F is defined as the remainder obtained when X is divided by F
(e.g. 3 MOD 2 = 1). X MOD 0 returns X.
PAR.
DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
FP
Fixed divisor
[F]
03:
4
Dest. input loc. for X MOD F
[Z]
Input locations altered: 1
Instruction 47: X
Y
This instruction raises X to the power of Y and places the result in an input
location.
PAR.
DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Input location of Y
[Y]
03:
4
Dest. input location for X
Y
[Z]
Input locations altered: 1
Instruction 48: Sin(X)
This instruction calculates the sine of X (X is assumed to be in degrees) and
places the result in an input location. The cosine of a number can be obtained by
adding 90 to the number and taking the sine (COS(X) = SIN (X + 90)).
PAR.
DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Dest. input location for SIN(X)
[Z]
Input locations altered: 1