??? 03/02/05 01:59 Read: times |
#88829 - problem with labels |
I am having trouble in using labels...my code is compiled using sdcc...
can i use ljmp to jump from an interrupt service routine to the main program... i have written this program...(a simpler version of wht i need to do) I heard that ljmp can used only within the scope of the function...so what do i have to do.. TH1 = /*****/ TL1 = /*****/ TR1 = 1; while(1) { /**** list of statements.. ****/ } _asm 00001$: _endasm; }// main () ends /*ISR*/ void timer1_isr(void) interrupt 3 { _asm ljmp 00001$ _endasm; } I cant use polling for my timer because the list of statements are very long..that way i cant stop as soon as timer overflows.. How else can i break the loop and get out...will the "break;" statement help... thank you -rahul |