OpenCores
URL https://opencores.org/ocsvn/avr_hp/avr_hp/trunk

Subversion Repositories avr_hp

[/] [avr_hp/] [trunk/] [c_code/] [program_d.cpp] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 tobil
//#include <stdio.h>
2
static unsigned r0, r1, r2, r3, r4, r5, r15;
3
int main()
4
{
5
        r0 = 0;
6
        r1 = 0;
7
        r2 = 3;
8
        r3 = 4;
9
        r4 = 7;
10
        while (1)
11
        {
12
                r0++;
13
                //////////////////////////////
14
                r15 = r2 << 1;
15
                if (r15 >= 1)
16
                {
17
                //////////////////////////////
18
                r15 = r2 + 9;
19
                if (r15 == 12)
20
                {
21
                //////////////////////////////
22
                r15 = r2 * 4;
23
                if (r15 == 12)
24
                {
25
                //////////////////////////////
26
                r15 = r3 ^ r2;
27
                if (r15 <= 10)
28
                {
29
                //////////////////////////////
30
                r15 = r3 - r2;
31
                if (r15 == 1)
32
                {
33
                //////////////////////////////
34
                r15 = r4 & r2;
35
                if (r15 > 0)
36
                {
37
                //////////////////////////////
38
                r15 = r4 | r2;
39
                if (r15 == r4)
40
                {
41
                //////////////////////////////
42
                r15 = r4 >> 1;
43
                if (r15 < 7)
44
                {
45
                        //////////////////////////////
46
                        //printf("cont %h\n", r15);
47
                        r1++;
48
                }
49
                }
50
                }
51
                }
52
                }
53
                }
54
                }
55
                }
56
                if (r0 != r1)
57
                        break;
58
        }
59
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.