x86 exceptions and flags

Posted by b-gen-jack-o-neill on Super User See other posts from Super User or by b-gen-jack-o-neill
Published on 2010-05-03T15:31:32Z Indexed on 2010/05/03 15:38 UTC
Read the original article Hit count: 287

Filed under:
|

Hi, please, I know that when you for example divide by zero, the aproptiate flag is set in CPU flag register. But today I read that there are special interrupt vectors (I think the first 16 in IVT) that are used for such conditions like dividing by zero. So, what I want to ask is, does any situation that couses change som flag also triggers apropriate interrupt? Becouse in school, we used conditional jumps that checks wheather carry flag has been set or not, and I don´t remember there was some interrupt triggerd by that. So I am pretty confused now.

© Super User or respective owner

Related posts about x86

Related posts about interrupts