Computer Science Principles V11

Clive W. Humphris

INSTRUCTION SET 2: CPX Compare to X Register.  


CPX is a compare instruction. Depending upon the result of the differences between the X Register and the specified data or address location contents the status register flags are then set as follows.

Result Zero Z is set. If bit-7 of the result is 1 or negative then flag N is set.

If the register is greater than or equals the data or contents of memory location the carry flag is set.

The memory location and X Register contents are unchanged.

Table of contents

previous page start next page