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