A-53
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-17 Data Control Instructions
AVERAGE AVG 195 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
S
N
R
AVG(195)
S: Source word
N: Number of
cycles
R: Result word
R + N + 1
R
R + 1
R + 2
R + 3
Calculates the average value of an input word for the
specified number of cycles.
S: Source word
N: Number of cycles
Average
N values
Average Valid Flag
Pointer