Wikipedia says :
Auxiliary flag is set(AF=1) if there is a carry from low nibble to high nibble or a borrow from a high nibble to low nibble of the low order 8-bit of a 16-bit number.(for example, in BCD addition or subtraction.)
Does this mean that when I do :
MOV AL, 25F
since 25F is 00100101 and the lower nibble wasn’t sufficient, AF gets set?
Or is it only during addition/subtraction?
movdoes not affect any flags.addandsubdo setAF, but so do many other instructions too, for exampleadc,cmp,cmpxchg,dec,inc,sbb,neg.Many other instructions leave
AFin an undefined state, for examplemul,imul,div,idiv,test,and,or,xor,shr.