00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <utility/ostream.h>
00017 #include <display.h>
00018
00019 __USING_SYS
00020
00021 int main()
00022 {
00023 OStream cout;
00024
00025 cout << "I'm just a dummy test application.\n";
00026 cout << "Since I have nothing better to do, I'll start an ubound memory test (i.e. I'll even test the memory your computer doesn't have :-)!!\n";
00027 cout << "Testing memory: ";
00028
00029 Display disp;
00030 for(char * ptr = (char *)(1024*1024); ptr < (char *)0xffffffff; ptr+= 64) {
00031 disp.position(-1, 16);
00032 cout << (void *)ptr;
00033 *ptr = 'G';
00034 if(*ptr != 'G') {
00035 cout << "\nLast memory position at " << ptr << "!\n";
00036 break;
00037 }
00038 }
00039
00040 return 0;
00041 }