Re: x86 Carry and Auxiliary/Adjust flags?
Posted on 2017-08-12, 15:06
I've tried making a simple truth table to use for calculating carry/adjust flags, based on the 7/15/31th bit of v1(the value being added/substracted to/from), v2(the value being added/substracted) and the result bit: ADD: CARRY(7/15/31)/AUX(3): V1 V2 RES FLAG 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 …