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

Subversion Repositories 8051

[/] [8051/] [trunk/] [asm/] [xram_m.c] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 simont
/*
2
 * Copyright (c) 1999-2001 Tony Givargis.  Permission to copy is granted
3
 * provided that this header remains intact.  This software is provided
4
 * with no warranties.
5
 *
6
 * Version : 2.9
7
 */
8
 
9
/*---------------------------------------------------------------------------*/
10
 
11
#include <8051.h>
12
 
13
unsigned char xdata buffer[65536];
14
 
15
/*---------------------------------------------------------------------------*/
16
 
17
void main() {
18
 
19
    unsigned short i, j;
20
    unsigned x;
21
 
22
    buffer[255] = 255;
23
    for (j=1; j<10; j++){
24
      x = 256 * j;
25
      for(i=1; i<256; i++) {
26
          buffer[x+i] = buffer[x+i - 1] + 1;
27
      }
28
      if (buffer[x+255]!=255) {
29
          P1 = j;
30
      }
31
    }
32
 
33
    P0 = 1;
34
 
35
    while(1);
36
}

powered by: WebSVN 2.1.0

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