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

Subversion Repositories avr_hp

[/] [avr_hp/] [trunk/] [c_code/] [program_b.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 + 9;
15
                if (r15 == 12)
16
                {
17
                //////////////////////////////
18
                r15 = r2 * 4;
19
                if (r15 == 12)
20
                {
21
                //////////////////////////////
22
                r15 = r3 - r2;
23
                if (r15 == 1)
24
                {
25
                //////////////////////////////
26
                r15 = r4 & r2;
27
                if (r15 > 0)
28
                {
29
                //////////////////////////////
30
                        //printf("cont %h\n", r15);
31
                        r1++;
32
                }
33
                }
34
                }
35
                }
36
                if (r0 != r1)
37
                        break;
38
        }
39
}

powered by: WebSVN 2.1.0

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