Arithmetic overflow hardware interrupt?

Those of us who know the Carry and Overflow flag (let's not forget about the sign and zero), love them.

My question is: is there a processor that will interrupt if the carry or overflow flag is set? when does he ask him?

Its way is better than having a branch after each arithmetic instruction ...

+3
source share
2 answers

On IA-32 processors, you have a command INTO(letter O, not number 0) that will go to interrupt handler 4 (#OF) if the overflow flag is set.

There is no equivalent instruction for the carry flag.

Please note that this command is not valid in 64-bit mode.

+2
source

MIPS .

+1

Source: https://habr.com/ru/post/1790703/


All Articles