would it be easier to use

WRITE X,VAR.BYTE1
WRITE Y,VAR.BYTE0

(I know, not the question lol)