The carry flag is uncorrected set when a SUB or DEC instruction is executed. This occurs because A and C are negated instead of B.
Logged In: YES user_id=473886
A possible and simple solution is to negate the carry, when notC bit is set and an ADD operation is executed. All this can be done in alu.c module.
Log in to post a comment.
Logged In: YES
user_id=473886
A possible and simple solution is to negate the carry, when
notC bit is set and an ADD operation is executed. All this
can be done in alu.c module.