This is a very quick and easy question: How do I move a literal value into a register?
I need to move the value 2 into a register with address 0x0800 of a dsPIC30F6014A. I have tried the following:
MOV #0x0002, [0x0802];
but I get an error message stating "Invalid ASM instruction (135): #0x0002"
And can this be done in C (mikroC)?