coreboot-libre-fam15h-rdimm/util/romcc/tests/simple_test41.c

15 lines
229 B
C
Raw Normal View History

2024-03-04 11:14:53 +01:00
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;
}