#include "prj.h" int mad2(short frame,short y,short x,short my,short mx,int prev,short num) { register short k; int value,temp; value=0; for(k=0;k0)? temp:-temp; if(value>prev) return value; } return value; }