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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orp/] [orp_soc/] [sw.old/] [console-xess/] [console-xess.c] - Blame information for rev 1765

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

Line No. Rev Author Line
1 782 lampret
#include <stdarg.h>
2
 
3
int global = 5;
4
 
5
int func (unsigned long a, char b) {
6
  global = 2;
7
  a = 3 + a;
8
  b = 4 + b;
9
  return a + b;
10
}
11
 
12
int main () {
13
  int local = 7;
14
  int i;
15
  char tmp[50];
16
 
17
  screen_init ();
18
  screen_clear ();
19
  for (i = 0; i < 10; i++)
20
    put_char (i + '0');
21
  put_char ('\n');
22
  put_char ('\n');
23
 
24
  put_string ("Hello, World!");
25
 
26
  i = 0;
27
  while (1) {
28
    put_string ("This is OpenRISC running on Xess XSV board ...");
29
    put_char ('0' + i & 7);
30
    put_char ('\n');
31
  }
32
}

powered by: WebSVN 2.1.0

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