lda # ora LineBuf,y sta LineBuf,y txa sbc ydiff bcs *+7 iny adc xdiff bcc *-3 tax
any blocky animation will be deteced within no time and a serious drama will be generated upon it, be sure about that! :-)