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