but the BIOS don't do that, windows don't do that and mostlly, hobby os don't do that.
the carry flag is frequentlly used to handle errors, with a value in eax.
is it prefered to have only eax with a negative value or carry flag?
to test errors in case of negative value, we compare eax with 0, and then, jump to error routine.
Code: Select all
test eax,eax
jl .error
Code: Select all
jnc error