x86 Assembly: INC and DEC instruction and overflow flag

前端 未结 7 1483
庸人自扰
庸人自扰 2020-12-05 03:20

In x86 assembly, the overflow flag is set when an add or sub operation on a signed integer overflows, and the carry flag is set when an operation o

7条回答
  •  误落风尘
    2020-12-05 04:06

    Except for the carry flag inc sets the flags the same way as add operand 1 would.

    The fact that inc does not affect the carry flag is very important.

    http://oopweb.com/Assembly/Documents/ArtOfAssembly/Volume/Chapter_6/CH06-2.html#HEADING2-117

提交回复
热议问题