From: SourceForge.net <no...@so...> - 2003-10-29 04:46:14
|
Bugs item #826234, was opened at 2003-10-18 23:53 Message generated for change (Settings changed) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=826234&group_id=599 Category: None Group: unreproducable >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Interupt vcectors not supported Initial Comment: dco...@ih... Hi Guys Nice Job :-) I am working with a 80c552 which supports 14 irq vectors but the sdcc creates the asm file correctly but at the time of linking etc the vectors above 5 are lost so is the code secondly if I use _naked the irq code is not generated correctly anymore If you want the source email me and I will send my .c file and my .asm file I use asx8051 -losg file.asm then sdcc solar.c readport.rel to create my ihx file I used last nights version and still no change void timer_isr (void) interrupt 1 { COMPARET0(); // irqflag=1; } void timer_i2csr (void) interrupt 5 { LR_IIC(); } void capture_0 (void) interrupt 6 { cap0(); } void capture_1 (void) interrupt 7 { cap1(); } void capture_2 (void) interrupt 8 { cap2(); } void capture_3 (void) interrupt 9 { cap3(); } ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2003-10-28 22:45 Message: Logged In: YES user_id=635249 Via email, I have been informed that this was a simulator problem rather than a compiler problem. ---------------------------------------------------------------------- Comment By: Erik Petrich (epetrich) Date: 2003-10-19 10:45 Message: Logged In: YES user_id=635249 I can't reproduce this problem. All of the interrupt handlers as well as their vectors are present in the .ihx file produced by the linker. Perhaps you are failing to declare a prototype of the interrupt handler in the file with your main() ? (see section 3.8 of the manual) Please clarify your problem with the _naked attribute; its sole purpose is to cause the compiler to omit the entry and exit code of a function. Although it would be ok with me if you sent your code to me via email, it's preferable that you just post the code in question with the bug report so that anyone who has time can deal with the report. If you are concerned about revealing your code to the world, just strip out the parts not relevant to the bug. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=826234&group_id=599 |