def eqrr(registers, opcodes):
    """eqrr (equal register/register) sets register C to 1 if register A is
    equal to register B. Otherwise, register C is set to 0.
    """
    return int(registers[opcodes[1]] == registers[opcodes[2]])