Eric Biederman | d1ea539 | 2003-06-28 06:49:45 +0000 | [diff] [blame^] | 1 | static void main(void) |
2 | { | ||||
3 | unsigned long a,b,c, d; | ||||
4 | volatile unsigned long *val = (volatile unsigned long *)0x1234; | ||||
5 | a = val[0]; | ||||
6 | b = val[1]; | ||||
7 | c = a*b; | ||||
8 | val[2] = c; | ||||
9 | d = val[3]; | ||||
10 | a = c / d; | ||||
11 | b = c % d; | ||||
12 | val[4] = a; | ||||
13 | val[5] = b; | ||||
14 | } |