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

Subversion Repositories avr_hp

[/] [avr_hp/] [trunk/] [c_code/] [program_a.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, r5, r15;
3
int main()
4
{
5
        r0 = 0;
6
        r1 = 0;
7
        r2 = 4;
8
        r3 = 3;
9
        while (1)
10
        {
11
                r0++;
12
                r15 = r3 | r2;
13
                if (r15 < 10)
14
                {
15
                //////////////////////////////
16
                r15 = r3 ^ r2;
17
                if (r15 <= 10)
18
                {
19
                //////////////////////////////
20
                r15 = r2 << 1;
21
                if (r15 >= 1)
22
                {
23
                        //printf("cont %h\n", r15);
24
                        r1++;
25
                }
26
                }
27
                }
28
                if (r0 != r1)
29
                        break;
30
        }
31
}

powered by: WebSVN 2.1.0

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