Write a program segment (at most two instructions) to clear the carry bit if Accumulator A contains an odd number, otherwise set the carry bit. The contents of AccA may be modified.
Is there an instruction something like rotate right through carry. If so then xor 1 (or subtract 1) followed by the rotate will be the two instructions.
Mike.
Edit, a look at the instruction set should give you the code you need.
Is there an instruction something like rotate right through carry. If so then xor 1 (or subtract 1) followed by the rotate will be the two instructions.
Mike.
Edit, a look at the instruction set should give you the code you need.