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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [dsptest/] [main.c] - Blame information for rev 206

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

Line No. Rev Author Line
1 14 hellwig
/*
2
 * main.c -- the main program
3
 */
4
 
5
 
6
#include "common.h"
7
#include "lib.h"
8
#include "start.h"
9
 
10
 
11
int main(void) {
12
  int i, j;
13
  unsigned int attr, ch;
14
  unsigned int *p;
15
 
16
  for (i = 0; i < 16; i++) {
17
    for (j = 0; j < 16; j++) {
18
      attr = i * 16 + j;
19
      ch = (attr << 8) | 0x23;
20
      p = (unsigned int *) 0xF0100000;
21
      p += 128 * i + 2 * j;
22
      *p = ch;
23
    }
24
  }
25
  while (1) ;
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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