URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 180 |
Rev 200 |
Line 154... |
Line 154... |
printf(" load <n> load an S-record file from serial line <n>\n");
|
printf(" load <n> load an S-record file from serial line <n>\n");
|
}
|
}
|
|
|
|
|
static void help16(void) {
|
static void help16(void) {
|
printf(" boot <n> load and execute first sector of disk <n>\n");
|
printf(" boot <n> load and start first sector of disk <n>\n");
|
|
printf(" boot <n> * load first sector of disk <n>, do not start\n");
|
}
|
}
|
|
|
|
|
static Bool getHexNumber(char *str, Word *valptr) {
|
static Bool getHexNumber(char *str, Word *valptr) {
|
char *end;
|
char *end;
|
Line 794... |
Line 795... |
if (n == 2) {
|
if (n == 2) {
|
if (!getDecNumber(tokens[1], &dskno) || dskno < 0 || dskno > 1) {
|
if (!getDecNumber(tokens[1], &dskno) || dskno < 0 || dskno > 1) {
|
printf("illegal disk number\n");
|
printf("illegal disk number\n");
|
return;
|
return;
|
}
|
}
|
boot(dskno);
|
boot(dskno, true);
|
|
} else if (n == 3) {
|
|
if (!getDecNumber(tokens[1], &dskno) || dskno < 0 || dskno > 1) {
|
|
printf("illegal disk number\n");
|
|
return;
|
|
}
|
|
if (strcmp(tokens[2], "*") != 0) {
|
|
help16();
|
|
return;
|
|
}
|
|
boot(dskno, false);
|
} else {
|
} else {
|
help16();
|
help16();
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.