need help understanding the carry flag..
Posted: Fri Aug 11, 2017 5:44 pm
Hello there
i have a problem understanding the carry flag :/
i added these lines to the SUB instruction in the CE's step 2 TUT
after the add instruction, why is the carry flag being set? (CF=1)
and why is it cleared (CF=0) when i replaced this code:
with either 7,A or even F the carry flag is cleared? (CF=0)
e.g.
Thanks for reading, and your help inadvanced..
i have a problem understanding the carry flag :/
i added these lines to the SUB instruction in the CE's step 2 TUT
Code: Select all
pushad
pushfd
mov eax,2
add eax,1
popfd
popad
and why is it cleared (CF=0) when i replaced this code:
Code: Select all
mov eax,2
e.g.
Code: Select all
mov eax,F
Thanks for reading, and your help inadvanced..