OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [command.c] - Diff between revs 200 and 201

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 200 Rev 201
Line 149... Line 149...
  printf("  t  <i> f <data>   set TLB contents at <i> to frame <data>\n");
  printf("  t  <i> f <data>   set TLB contents at <i> to frame <data>\n");
}
}
 
 
 
 
static void help15(void) {
static void help15(void) {
  printf("  load <n>          load an S-record file from serial line <n>\n");
  printf("  load <n>          load/start S-records from serial line <n>\n");
 
  printf("  load <n> *        load S-records from serial line <n>\n");
}
}
 
 
 
 
static void help16(void) {
static void help16(void) {
  printf("  boot <n>          load and start first sector of disk <n>\n");
  printf("  boot <n>          load/start first sector of disk <n>\n");
  printf("  boot <n> *        load first sector of disk <n>, do not start\n");
  printf("  boot <n> *        load first sector of disk <n>\n");
}
}
 
 
 
 
static Bool getHexNumber(char *str, Word *valptr) {
static Bool getHexNumber(char *str, Word *valptr) {
  char *end;
  char *end;
Line 780... Line 781...
  if (n == 2) {
  if (n == 2) {
    if (!getDecNumber(tokens[1], &serno) || serno < 0 || serno > 1) {
    if (!getDecNumber(tokens[1], &serno) || serno < 0 || serno > 1) {
      printf("illegal serial line number\n");
      printf("illegal serial line number\n");
      return;
      return;
    }
    }
    load(serno);
    load(serno, true);
 
  } else if (n == 3) {
 
    if (!getDecNumber(tokens[1], &serno) || serno < 0 || serno > 1) {
 
      printf("illegal serial line number\n");
 
      return;
 
    }
 
    if (strcmp(tokens[2], "*") != 0) {
 
      help15();
 
      return;
 
    }
 
    load(serno, false);
  } else {
  } else {
    help15();
    help15();
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.