Hello, everyone.

I'm learning assembly and can't figure out whether the INC instruction affects the C bit in the condition code register. I understand that the INC instruction increments memory or accumulator by adding one to the number in the specified register, but does that include the C bit in the condition code register? I can't seem to find a clear explanation in my text book.

Thank you for any clarification.

No. INC affects O, S, Z, A, and P only.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.