def get_diff(instrs):
    """Returns a list of triplets of the form (ea, orig, new)."""

    diff = []

    for ins in instrs:
        for i, (orig, new) in enumerate(zip(ins.bytes, ins.cbytes)):
            if orig != chr(new):
                diff.append((ins.addr + i, orig, chr(new)))

    return diff