However in the C code, I have no idea what it's actually doing in assembly.Take a function for example, if I make a void function, will the assembler have a command that jumps to that part of the code, and then jumps back (adding two cycles or so), or will it just insert that code into wherever the function is called?
Is there any way to force the C program to do something in a specified number of cycles, figure out how many cycles the C code is taking, or just write assembly for time-critical parts directly into the C code itself?
asm (
"SET R30, R30, 0x15"
);
Assembly statement "SET R30, R30, 0x15"
creates a label, which may not be what was intended.
Is there a particular way I am supposed to type out commands in asm(); ?