CPI
Opcode | Operand | Description |
CPI | 8-bit data | Compare immediate with accumulator |
— The 8-bit data is compared with the contents of accumulator.
— The values being compared remain unchanged.
— The result of the comparison is shown by setting the flags of the PSW as follows:
— if (A) < data: carry flag is set
— if (A) = data: zero flag is set
— if (A) > data: carry and zero flags are reset
— Example: CPI 89H
Comments
Post a Comment