Refactor flag condition code
Add spec for BRN exception