Subroutine Instructions - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
AVERAGE
AVG
A-1-16

Subroutine Instructions

Instruction
Mnemonic
SUBROUTINE
SBS
CALL
SUBROUTINE
SBN
ENTRY
SUBROUTINE
RET
RETURN
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
---
AVG(195)
S
N
R
S: Source word
N: Number of cycles
R: Result word
Variations
Symbol/Operand
@
SBS(091)
N
N: Subroutine number
---
SBN(092)
N
N: Subroutine number
---
RET(093)
Function
Calculates the average value of an input word for the specified
number of cycles.
S: Source word
N: Number of cycles
R
Pointer
R + 1
Average Valid Flag
R + 2
R + 3
R + N + 1
Function
Calls the subroutine with the specified subroutine number and
executes that program.
Execution condition ON
Main program
Subroutine
program
(SBN(092) to
RET(093))
Indicates the beginning of the subroutine program with the speci-
fied subroutine number.
or
Subroutine region
Indicates the end of a subroutine program.
Appendices
Average
N values
Program end
A-35

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF