Knowledge Base

Locate the value in X in a buffer held in RAM.

Consider an Xwire receive data block to be nn bytes of RAM starting at address bb. Scan the block, starting at starting at RAM address bb+I (i.e. the starting address is indexed) for the first occurrence of a byte that matches the value in X, if present.

The result is returned in the X register. 0 = first position, 255 = not found. I is not changed.

Dialect exclusions: Not available in dialects before 28