from scfmsp.controlflowanalysis.instructions.AbstractInstructionTwoRegisters import AbstractInstructionTwoRegisters


class InstructionBit(AbstractInstructionTwoRegisters):
    name = 'bit'

    def get_execution_time(self):
        return self.clock

    def execute_judgment(self, ac):
        self._execute_judgment_carry(ac)
        self._execute_judgment_zero(ac)
        self._execute_judgment_negative(ac)
        self._execute_judgment_overflow(ac)