mirror of
https://github.com/cc65/cc65.git
synced 2024-11-15 11:05:56 +00:00
32 lines
566 B
C
32 lines
566 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <conio.h>
|
|
|
|
|
|
int main (void)
|
|
{
|
|
unsigned char error = 0;
|
|
unsigned char line = 0;
|
|
unsigned char maxx, maxy;
|
|
screensize (&maxx, &maxy);
|
|
do {
|
|
printf ("%2d: %s\n", error, _stroserror (error));
|
|
if (line == maxy-3) {
|
|
printf ("Press any key...\n");
|
|
if (cgetc () == 'q') {
|
|
return 0;
|
|
}
|
|
clrscr ();
|
|
line = 0;
|
|
} else {
|
|
++line;
|
|
}
|
|
++error;
|
|
} while (error != 0);
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
|