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

Subversion Repositories avr_hp

[/] [avr_hp/] [trunk/] [c_code/] [program_a.cpp] - Rev 2

Compare with Previous | Blame | View Log

//#include <stdio.h>
static unsigned r0, r1, r2, r3, r5, r15;
int main()
{
	r0 = 0;
	r1 = 0;
	r2 = 4;
	r3 = 3;
	while (1)
	{
		r0++;
		r15 = r3 | r2;
		if (r15 < 10)
		{
		//////////////////////////////
		r15 = r3 ^ r2;
		if (r15 <= 10)
		{
		//////////////////////////////
		r15 = r2 << 1;
		if (r15 >= 1)
		{
			//printf("cont %h\n", r15);
			r1++;
		}
		}
		}
		if (r0 != r1)
			break;
	}
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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