how to set auxiliary flag for 16bits binary addition
问题 I know that when performing an 8-bit binary addition, the auxiliary flag is set to 1 if there is a carry from 3rd bit to 4th bit; but what about the addition of 2 16-bit numbers? i can't see any clear answer on the web. I'm studying intel 8086 microprocessor... For example, when i add these 2 numbers, 0x30a2 and 0xf1ac 0011 0000 1010 0010 + 1111 0001 1010 1100 CF=1 ZF=0 PF=1 SF=0 OF=1 AF=? I'm not sure where to check it 回答1: From "Programming the 8086/8088" by James W. Coffron: AF auxiliary