Inline assembler usage PIC32MZ
Hi, where can i get details on the inline assembly? Asked MPLABX to disassemble the code, and it wouldn't take back the exact same asm code that it showed me.
asm volatile("mfc0 %0, $9" : "=r"(periodbck));
I found: "mfcz dest-gpr, source" Stores the contents of the coprocessor register specified by the source in the general register specified by dest-gpr.
That's ok, so CP0 Register 9 contents go to %0. But it doesn't seem to work without the : "=r"(variable) part, which seems to add an instruction to move out the contents from %0 to 'variable'.
I'm an x86 assembly programmer for xxx yers and getting a headache from this...