URL
https://opencores.org/ocsvn/8051/8051/trunk
[/] [8051/] [tags/] [rel_12/] [asm/] [xram_m.c] - Diff between revs 185 and 186
Only display areas with differences |
Details |
Blame |
View Log
Rev 185 |
Rev 186 |
/*
|
/*
|
* Copyright (c) 1999-2001 Tony Givargis. Permission to copy is granted
|
* Copyright (c) 1999-2001 Tony Givargis. Permission to copy is granted
|
* provided that this header remains intact. This software is provided
|
* provided that this header remains intact. This software is provided
|
* with no warranties.
|
* with no warranties.
|
*
|
*
|
* Version : 2.9
|
* Version : 2.9
|
*/
|
*/
|
|
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
|
|
#include <8051.h>
|
#include <8051.h>
|
|
|
unsigned char xdata buffer[65536];
|
unsigned char xdata buffer[65536];
|
|
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
|
|
void main() {
|
void main() {
|
|
|
unsigned short i, j;
|
unsigned short i, j;
|
unsigned x;
|
unsigned x;
|
|
|
buffer[255] = 255;
|
buffer[255] = 255;
|
for (j=1; j<10; j++){
|
for (j=1; j<10; j++){
|
x = 256 * j;
|
x = 256 * j;
|
for(i=0; i<256; i++) {
|
for(i=0; i<256; i++) {
|
buffer[x+i] = buffer[x+i - 1] + 1;
|
buffer[x+i] = buffer[x+i - 1] + 1;
|
}
|
}
|
if (buffer[x+255]!=255) {
|
if (buffer[x+255]!=255) {
|
P1 = j;
|
P1 = j;
|
}
|
}
|
}
|
}
|
|
|
P0 = 1;
|
P0 = 1;
|
|
|
while(1);
|
while(1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.