Hi, I'm trying to make a skip-jump table for my IAP application. I have read all the previous threads here but still cant get it to work. Are there anyone who can support me with some code?
Posted on July 04, 2007 at 14:57that error is rather self-explanatory... are you sure you have put the different part of the example in the different source files as required? Regards, Luca
Oh, sorry. I see what you mean now. But I cant get it to work anyhow. interrupt_vector.c: ----------------------------- extern char INT_jump_table[]; char * const _vectab[] = { INT_jump_table, INT_jump_table+3, INT_jump_table+6, }; ----------------------------- jump_table.c ----------------------------- #pragma section (INT_JMP) char INT_jump_table() { #asm xref _irq_trap; jp _irq_trap jp _irq_trap jp _irq_trap #endasm } #pragma section () @interrupt void irq_trap (void) { } ----------------------------- Now I get this message from compiler: ''bad address (0x1000) for zero page symbol _INT_jump_table'' Thanks in advance, I really need your help on this... Regards Henke
in case someone other than the OP was following this thread, the problem came from the fact that the memory model used put variables @tiny by default. The solution was to add @near in the line