I'm planning to do a bootloader for a Cortex-M1 processor but i'm having serious problems.
First of all, the Keil says it expect a ")" when writing this type of inline assembly:
Check the manual. You are trying GNU syntax. ARMCC syntax is different!
Thanks Bastian, that was the problem.
More over. In order to change the stack pointer and the program counter you have to make a separate assembly file, because inline assembly doesn't have direct access to those registers. FYI