The syntax looks correct. Afaik you have to define your interrupt
handlers in the same file as your main. I had some problems when I
tried to use an interrupt handler defined in a library I used. Could be
the problem? SDCC does the interrupt vector mapping for you.
Dept. of computer science
University of Copenhagen
On 19/4-2005, at 12.08, radzio_fantom@... wrote:
> From: radzio_fantom@...
> Date: 19. april 2005 12.02.08 MET
> To: sdcc-user@...
> Subject: SDCC and HC08
> Hi.Has anyone used SDCC to compile code for HC08 microcontrollers ?
> I have a question about interrupts.When I define an interrupt
> routine like "void function() interrupt x" the function is created
> correctly but as I see in the code it is not placed in the right
> place in memory.The addres of the routine is not placed in the
> memory location it is supposed to be.Should I place it manualy using
> a little bit of assembler code or do I miss sth ? Another question
> is:has anyone used ROM routines for programming flash in C ? What is
> your solution ? Thanks in advance.Regards.