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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [test7/] [test7.c] - Blame information for rev 70

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 54 ameziti
// test bitových operací všeho druhu (pBlazeIDE)
2
 
3
void main()
4
{
5
        volatile unsigned char c = 1;
6
  volatile unsigned char d = 1;
7
  volatile unsigned char e = 15;
8
 
9
        c <<= 4;
10
 
11
        c >>= 3;
12
 
13
  c |= c;
14
 
15
  c |= d + 1;
16
 
17
  c = c & d;
18
 
19
  d = ~e;
20
 
21
  e = c ^ d;
22
 
23
  c = !c && d || e;
24
  c = c || e;
25
 
26
  if (!c)
27
  {
28
    c = -e;
29
  }
30
}

powered by: WebSVN 2.1.0

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