The commands translate, rotate and mirror are related to the SUBFUNCT values 1, 2 and 3 respectively.
After the retrospective macros have been completed the processing will be passed to the RESET macro, by testing the value of SUBFUNCT, the axis positions can be corrected.
For example:
%MACRO=RESET
...
%IF SUBFUNCT=3 %THEN %CALL=MIRROR_RESET
...
...
%ENDM