2007-07-05 10:38 PM
2007-07-03 05:25 AM
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?
Regards henke2007-07-03 09:38 PM
Hello,
there's a code example in Does it suit your needs? Regards, Luca (Cosmic)2007-07-03 09:44 PM
Hi,
I have tried that code and I get error from compiler: ''redeclared external INT_jump_table'' Regards Henke2007-07-04 05:57 AM
2007-07-04 09:55 PM
Hello 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 Henke2007-07-05 04:10 AM
mailto:luca.ubiali@cosmic.fr
and I'll take a look at it. Regards, luca2007-07-05 10:38 PM
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
extern @near char INT_jump_table[]; Luca