...

Status
Not open for further replies.

erkanz55

New Member
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.
 
Last edited:
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.
thanks for help
I looked at the instruction set many times but still can't write the code.
 
Another tip,

do you know the easy way to tell if a binary number is odd or even?

JimB
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…