On 6/14/2018 1:50 PM, Farley, Peter x23353 wrote:
Any way you could share a code example? Or at least pseudo code for the
technique?
Use VL to load 16 one-byte search arguments into (for example) V0
Use VLL to load 16 bytes (or how ever many remain if <16) of the string
into (for example) V1
Use VFAEB to find the first matching byte e.g., VFAEB V1,V1,V0,1
If CC=not found, adjust string pointer up by 16 and remaining length
down by 16 and loop back to the VLL (or exit if none left)
Otherwise, use VLGVG to get the matching ELE index from V1 into (for
example) R15
Point to matching byte in the string by adding index value to the
current string pointer e.g., LA R1,0(R15,1R1)
--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/
--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.