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

Subversion Repositories System09

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /System09/trunk/Tools/s19tovhd
    from Rev 66 to Rev 78
    Reverse comparison

Rev 66 → Rev 78

/S19toVHD.exe Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
/S19toVHD.cpp
193,7 → 193,7
* load motorola formatted file
*/
 
void load_mot( char *fname_in )
bool load_mot( char *fname_in )
{
FILE *fp_in;
int byte, addr, i;
202,7 → 202,7
if( !fp_in )
{
printf( "\nCan't open %s", fname_in );
return;
return false;
}
 
byte = 0;
242,6 → 242,7
}
}
fclose( fp_in );
return true;
}
 
 
365,7 → 366,9
printf("Reading Motorola S19 from file '%s'\n", argv[1]);
printf("VHDL file name '%s'\n", argv[2]);
printf("Base RAM/ROM entity name is '%s'\n", argv[3]);
load_mot( argv[1] );
if (!load_mot( argv[1] )) {
return(-1);
}
if( (fp_out = fopen( argv[2], "w" )) == NULL ) {
printf( "\nCan't open '%s' for write ", argv[2] );
return(-1);
/Makefile
0,0 → 1,16
 
MKFRAGS := ../../mkfiles
export MKFRAGS
 
C_SRC := S19toVHD.cpp
HEADERS :=
 
include $(MKFRAGS)/def_cmds.mk
 
S19toVHD$(EXE_EXT): $(C_SRC) $(HEADERS)
g++ -I. -DWIN32 -o $@ $<
 
clean:
rm S19toVHD$(EXE_EXT)
 
 

powered by: WebSVN 2.1.0

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