Save var number into register for global variables (SETGLOBAL)