8051 __top__ - Iar Embedded Workbench For

if(TI) // optional: TI handled in polling mode

while(1) // idle, all work in ISR __asm("NOP"); iar embedded workbench for 8051

-D_XDATA_START=0x0000 -D_XDATA_END=0x07FF if(TI) // optional: TI handled in polling mode

led_counter++; if(led_counter >= 500) P1 ^= 0x01; // toggle LED on P1.0 led_counter = 0; all work in ISR __asm("NOP")