Last change
on this file since 73dd55f was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
Imported original source code.
|
-
Property mode
set to
100755
|
File size:
991 bytes
|
Rev | Line | |
---|
[3ae31e9] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | mempage.c -- print a memory page layout sheet for the TMS320C25
|
---|
| 4 | Version 1 -- 1988-12-29 -- D.N. Lynx Crowe
|
---|
| 5 | =============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #include "stdio.h"
|
---|
| 9 | #include "stddefs.h"
|
---|
| 10 |
|
---|
| 11 | extern int atoi();
|
---|
| 12 |
|
---|
| 13 | /*
|
---|
| 14 | =============================================================================
|
---|
| 15 | print a memory page layout sheet for the TMS320C25
|
---|
| 16 | =============================================================================
|
---|
| 17 | */
|
---|
| 18 |
|
---|
| 19 | main(argc, argv)
|
---|
| 20 | int argc;
|
---|
| 21 | char *argv[];
|
---|
| 22 | {
|
---|
| 23 | register short i, m, n;
|
---|
| 24 |
|
---|
| 25 | if (argc NE 2)
|
---|
| 26 | m = 1;
|
---|
| 27 | else
|
---|
| 28 | m = atoi(argv[1]);
|
---|
| 29 |
|
---|
| 30 | for (n = 0; n < m; n++) {
|
---|
| 31 |
|
---|
| 32 | printf("\n\n\n TMS320C25 Memory Page _____\n\n\n");
|
---|
| 33 |
|
---|
| 34 | for (i = 0; i < 32; i++)
|
---|
| 35 | printf(" %3d __________ %3d __________ %3d __________ %3d __________\n",
|
---|
| 36 | i, i+32, i+64, i+96);
|
---|
| 37 |
|
---|
| 38 | printf("\f");
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | exit(0);
|
---|
| 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.