I was looking online through samples of interview questions asked in the past by Microsoft and came across this one:
The following asm block performs a common math function, what is it?
cwd xor ax, dx sub ax, dx
Can somebody please answer this and explain the answer to me? Thanks!!
Update : okay, so its computes the absolute value. Can somebody please explain step by step how it does this? I.e. explain what gets put in which register in each instruction and the alu operation that is performed on which registers etc..Thanks!