Why mov/cmp instead of cmp with two memory operands? [duplicate]
You cannot write cmp low_, high_. For such questions, always refer to the official instruction description, e.g. at https://www.felixcloutier.com/x86/cmp. Note that cmp has forms cmp r/m16, r16, for which the first operand can be either register or memory, and the second must be a register; as well as cmp r16, r/m16 which is the reverse. … Read more