For 8051 [top] — Iar Embedded Workbench

#endif #include "device.h" #include "uart.h" __xdata u16 adc_values[100]; // stored in external RAM __data u8 led_counter = 0; // fast access in internal RAM

// Good: use smallest data type, static, const static const __code u8 sine_table[256] = /* ... */ ; // Good: reuse variables u8 temp __data; // fast iar embedded workbench for 8051

void uart_puts(const char* s) while(*s) uart_putchar(*s++); #endif #include "device

-D_IDATA_START=0x0080 -D_IDATA_END=0x00FF -D_IDATA_START=0x0080 -D_IDATA_END=0x00FF while(1) // idle

while(1) // idle, all work in ISR __asm("NOP");