ASSIGN: Xtmp= (Xstart<Xend)+(Xstart>Xend);
ASSIGN: Ytmp= (Ystart<Yend)+(Ystart>Yend);
MACRO: cut_ruled 
ASSIGN: Loop1= Loop1+1;
