Using _get_R5_register(void) generates
MOV.W R5,r15
MOVX.W r15,dst
MOVX.W #0,dst+2
but you actually want
MOVX.A R5,dst
right?
For now I'm inlining assembly to get the job done, but I'd appreciate feedback on whether I'm doing this right. My console output confirms that I'm passing the
--silicon_version=mspx option to the compiler.
Mateja