1093
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Text String Processing Instructions
3
FIND$
FIND$
Applicable Program Areas
Operands
S1: Source Text String
S2: Found Text String
Note The data from S1 to S1 + the maximum 2,047 words and from S2 to S2 + the maximum 2,047 words must be in the
same area.
z Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
FIND IN STRING FIND$ @FIND$ 660
Finds a designated text string from within a text
string.
Symbol
FIND$
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S1 Source text string first word UINT Variable
S2 Found text string first word UINT Variable
D First destination word UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S1
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---S2
D
S1: Source text string first word
S2: Found text string first word
D: First destination word
FIND$(660)
S1
S2
D
15 0
S1
to to
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15 0
S2
to to
Text string data: 4,095 characters max. + NUL
S2 + maximum 2,047 words