sch1l


Bit (1) search from MSB side (search one from left).

[Syntax]

-

sch1l reg1, reg2

[Function]

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

If no bit (1) 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 sch1l machine instruction.

[Flag]

CY

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

OV

0

S

0

Z

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

SAT

---