REPAIR3
REPAIR3(_cury, _maxy);
REPAIR3(_curx, _maxx);
REPAIR3(_regtop, _maxy);
REPAIR3(_regbottom, _maxy);