gbdk-releases/sdcc/support/regression/tests/longlit.c
2015-01-10 16:25:09 +01:00

16 lines
248 B
C

/* Testing arithmetics with long litterals
*/
#include <testfwk.h>
#define OSCILLATOR 11059200
#define BAUD 19200
#define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)
unsigned char T1=T1_RELOAD_VALUE;
void test (void) {
ASSERT(T1==0xfd);
}