assembly to compare two numbers

前端 未结 8 1913
情书的邮戳
情书的邮戳 2020-12-10 02:35

What is the assembler syntax to determine which of two numbers is greater?

What is the lower level (machine code) for it? Can we go even lower? Once we get to the bi

8条回答
  •  既然无缘
    2020-12-10 03:00

    As already mentioned, usually the comparison is done through subtraction.
    For example, X86 Assembly/Control Flow.

    At the hardware level there are special digital circuits for doing the calculations, like adders.

提交回复
热议问题