So I am working on a bootloader in an embedded c environment. In order for the bootloader to "jump" some assembly language is required within the .c file.
Is there a way similar to This (or other), in VSCode that allows for temporary disabling of formatting?
Just to clarify further the code looks like this:
__asm void boot_jump(uint32_t address)
{
LDR SP, [R0]; Load new stack pointer address
LDR PC, [ R0, #4 ]; Load new program counter address
}
and VSCode keeps formatting this code to:
__asm void boot_jump(uint32_t address)
{
LDR SP, [R0];
Load new stack pointer address
LDR PC,
[ R0, #4 ];
Load new program counter address
}
Which will cause compile errors and will not build. Thanks in advance for any help.