Implement XStep and YStep instructions.