ADC instruction in ASM 8086

前端 未结 4 1050
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-20 08:40

When I use ADC for exmaple:

AL = 01 and BL = 02, and CF = 1

when I make this:

ADC AL,BL 

Will <

4条回答
  •  醉梦人生
    2021-02-20 09:24

    Few things about the 8086 ADC instruction:

    Syntax: adc dest, src
    dest: memory or register
    src:  memory, register, or immediate
    Action: dest = dest + src + CF
    

    Clearly the action says the Carry Flag (CF) will be included in the addition so the result will be 4 not 3.

提交回复
热议问题