xordiff and isshift in advencode