The use of PUT_MOE is incorrect: you can't change a pseudo's mode. What was meant there? Perhaps calling gen_lowpart?