#include <stdio.h>#include <stdlib.h>#include <signal.h>#include "pmac.h"Include dependency graph for dpeek.c:

Go to the source code of this file.
Functions | |
| void | handler (int sig) |
| int | main (int argc, char **argv) |
Variables | |
| int | done = 0 |
|
|
Definition at line 9 of file dpeek.c. 00010 {
00011 done = 1;
00012 }
|
|
||||||||||||
|
Definition at line 14 of file dpeek.c. 00015 {
00016 int n;
00017 static char syntax[] = "syntax: %s <index>\n";
00018
00019 /* get DP RAM */
00020 pmac_init();
00021
00022 if (argc != 2)
00023 {
00024 printf(syntax, argv[0]);
00025 exit(1);
00026 }
00027
00028 if (sscanf(argv[1], "%d", &n) != 1)
00029 {
00030 printf(syntax, argv[0]);
00031 exit(1);
00032 }
00033
00034 while (!done)
00035 {
00036 printf("%X\r", read_pmac_uint32(n));
00037 }
00038 putchar('\n');
00039
00040 pmac_exit();
00041
00042 exit(0);
00043 }
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001