Has anybody played with the SRST instruction? I am confused by the examples in
the PoP. Why do they branch back to the SRST instruction when the string is
found, e.g. BC 1,LOOP1? Shouldn't the branch be to the FOUND label, e.g. BC
1,FOUND?
L 5,STRAADR
L 4,STRALEN
AR 4,5
LA 0,X'C1'
LOOP1 SRST 4,5
BC 1,LOOP1
BC 2,NOTFND
FOUND [Any instruction]
...
NOTFND [Any instruction]
--
Donald Grinsell, Systems Programmer
Enterprise Technology Services Bureau
SITSD/Montana Department of Administration
406.444.2983 (D)
"When a stupid man is doing something he is ashamed of, he always declares that
it is his duty."
~ George Bernard Shaw (1856-1950)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN