We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hallo, i'm searching for an option to use "C" long variables in an "extended inline assembly block". I don't want use the Registernames (R8, R9, ...) becase i'm not sure that they are stable in newer Compilerversions. Please look at my example:
UINT16 readValFromAdr(long adr) { UINT16 uiData; __asm { EXTS R9,#1 ; <- my Problem MOV uiData,[adr] } return (uiData); }
Have anybody an idee?
Thanks,
Thorsten
Write it as a proper assembler function rather than inline assembler.