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

Subversion Repositories avr_hp

[/] [avr_hp/] [trunk/] [c_code/] [program_c.cpp] - Blame information for rev 3

Go to most recent revision | 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
                        //printf("cont %h\n", r15);
39
                        r1++;
40
                }
41
                }
42
                }
43
                }
44
                }
45
                }
46
                if (r0 != r1)
47
                        break;
48
        }
49
}

powered by: WebSVN 2.1.0

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