I have a working C program that runs correctly while i was using Keil Microvision2. I have switched the same program to Keil Microvision5 and i get the following error.
..\..\..\SOC501 Keil Software\SOC501K4\Interrupt routines.c(10): error C129: missing ';' before 'CODE'
the associated code segment is as shown below>>>
EXTRN CODE (UART_INTR)EXTRN CODE (TIMER0_ISR)EXTRN CODE (INT0_ISR)//;-----------------CSEG AT 0003h //for C version ref to page 121. CALL INT0_ISR //initialized in main.C RETICSEG AT 000Bh CALL TIMER0_ISR //initialized in main.C RETI
CSEG AT 23H CALL UART_INTR //Moved to main.c.4/18/12...Initialized in BL.asm. UART clock based on T3. RETI
;ORL CFG832, #01H
I would like to know changes i need to make in the code and /or replace it with C code so that interrupts operate correctly. The code for the interrupts is in another file in the same project..Any help would be appreciated..
Dr. Bhal Tulpule
Above code is not C, so why do you save it as C file?