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

Subversion Repositories c16

[/] [c16/] [trunk/] [asm/] [assembler.cc] - Diff between revs 26 and 30

Show entire file | Details | Blame | View Log

Rev 26 Rev 30
Line 23... Line 23...
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
int main(int argc, char * argv[])
int main(int argc, char * argv[])
{
{
   if (argc < 2)   { usage(argv[0]);   return 1; }
   if (argc < 2)   { usage(argv[0]);   return 1; }
 
 
const char * asmname = argv[1];
char * asmname = argv[1];
   yyin = fopen(asmname,  "r");
   yyin = fopen(asmname,  "r");
   if (yyin == 0)
   if (yyin == 0)
      {
      {
        fprintf(stderr, "Can't open %s\n", asmname);
        fprintf(stderr, "Can't open %s\n", asmname);
        return 1;
        return 1;

powered by: WebSVN 2.1.0

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