Implement NewXY and XYDir instructions.