sch0r


Bit (0) search from LSB side (search zero from right).

[Syntax]

-

sch0r reg1, reg2

[Function]

Searches the word data of the register specified by the first operand, from the right (LSB side), and stores the position of the first bit (0) found in the register specified by the second operand in hexadecimal. (For example, if bit 0 of the register specified by the first operand is 0, 01H is stored in the register specified by the second operand.)

If no bit (0) is found, 0 is written into the register specified by the second operand, and the Z flag is simultaneously set (1). If a bit (0) is found at the end, the CY flag is set (1).

[Description]

The assembler generates one sch0r machine instruction.

[Flag]

CY

1 if a bit (0) is found at the end, 0 if not

OV

0

S

0

Z

1 if a bit (0) is not found, 0 if not

SAT

---