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