5-91
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-7 Index Registers
5
5-7-3 Processing Related to Index Registers
The CJ-series CPU Unit's Table Data Processing Instructions complement the functions of the Index
Registers. Table Data Processing Instructions can be broadly divided into stack processing instructions
and table processing instructions.
5-7-3 Processing Related to Index Registers
Processing Purpose Instructions
Stack processing Operate FIFO (first-in
first-out) or LIFO (last-in
first-out) data tables, and
read, write, insert, delete,
or count data entries in
data tables.
SSET(630), PUSH(632), FIFO(633),
LIFO(634), SREAD(639),
SWRIT(640), SINS(641),
SDEL(642), SNUM(638)
Table pro-
cessing
Tables with
one-word
records
(Range
instructions)
Basic pro-
cessing
Find integer or floating-
point decimal values
such as for the maximum
value, minimum value, or
checksum.
MIN(183), MAX(182), MINL(175),
MAXL(174), MINF(177),
MAXDF(176), MIND(179),
MAXD(178), SRCH(181),
SUM(184), and FCS(180)
Special pro-
cessing
Perform various other
table processing such as
comparisons or sorting.
Combine Index Registers with
instructions such as SRCH(181),
MAX(182), MIN(183), and compari-
son instructions.
Tables with multiple-word
records
Search and sort records
in a specified area (num-
ber of words and range)
registered by the user.
RSRCH <(360), RSRCH <=(361),
RSRCH =,(362), RSRCH >=(363),
RSRCH >(364), RSRCH2 <(370),
RSRCH2 <=(371), RSRCH2 =(372),
RSRCH2 >=(373), RSRCH2 >(374),
RSRCH4 <(380), RSRCH4 <=(381),
RSRCH4 =(382), RSRCH4 >=(383),
RSRCH4 >(384), RSORT(204),
RSORT2(204), and RSORT4(205)
Perform operations on
records in a specified
area (number of words
and range) registered by
the user.
Combine the following instructions
with Index Registers.
• DIM(631), SETR(635), and
GETR(636) instructions
• Other instructions (e.g., compari-
son instructions)