Daniel - 2022-09-20

I've encountered two different errors in c files that have inline assembly:

In the code below, a syntax error occurs on the MAC.W line and the file cannot be processed:

#pragma inline_asm (func1)
void func1(signed16* p1, signed16* p2, int count)
{
    DT      R6
    BF/S    $-2                        // jump back up to line above
    MAC.W   @R4+,@R5+
}

In the next chunk of code, the following error occurred: "No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported." It occurred because of the H'7FFFFFFF comment contains a single quote:

#pragma inline_asm (isr1)
static void isr1(void)
{
    STS.L       MACL,@-SP                      ; 2 MAC registers saved
    STS.L       MACH,@-SP                      ;
    MOVML.L     R15,@-SP                       ; store R0-R14,PR = 16 registers
    MOV.L       ISR_INT_DIV_OVF+0,R0           ; load the address
    MOV.L       ISR_INT_DIV_OVF+4,R1           ; R1=H'7FFFFFFF for signed overflow
    }

Thanks for all you do,
Daniel