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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [load.c] - Diff between revs 201 and 257

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

Rev 201 Rev 257
Line 35... Line 35...
    hi -= 'A' - 10;
    hi -= 'A' - 10;
  } else
  } else
  if (hi >= 'a' && hi <= 'f') {
  if (hi >= 'a' && hi <= 'f') {
    hi -= 'a' - 10;
    hi -= 'a' - 10;
  } else {
  } else {
    return -1;
    return (Word) -1;
  }
  }
  lo = line[index + 1];
  lo = line[index + 1];
  if (lo >= '0' && lo <= '9') {
  if (lo >= '0' && lo <= '9') {
    lo -= '0';
    lo -= '0';
  } else
  } else
Line 47... Line 47...
    lo -= 'A' - 10;
    lo -= 'A' - 10;
  } else
  } else
  if (lo >= 'a' && lo <= 'f') {
  if (lo >= 'a' && lo <= 'f') {
    lo -= 'a' - 10;
    lo -= 'a' - 10;
  } else {
  } else {
    return -1;
    return (Word) -1;
  }
  }
  return (hi << 4) | lo;
  return (hi << 4) | lo;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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