blob: 9beee3ec2a49cc72cb54158a4228a9410a565381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
static void main(void)
{
unsigned long a,b,c, d;
volatile unsigned long *val = (volatile unsigned long *)0x1234;
a = val[0];
b = val[1];
c = a*b;
val[2] = c;
d = val[3];
a = c / d;
b = c % d;
val[4] = a;
val[5] = b;
}
|