X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fhexfile.h;h=0f46527d1cedc5b25cb388cc9c7dcbce890c3d1c;hb=8b2f6f3ebba84564f11f0087f257c94133c107fa;hp=10d7d92ffbc944bf65fa86ef4bb37f2c6d2530bb;hpb=b1fbb635cdd64e96bf36a62dc6b59d6724f5ad57;p=emu8051.git diff --git a/src/hexfile.h b/src/hexfile.h index 10d7d92..0f46527 100644 --- a/src/hexfile.h +++ b/src/hexfile.h @@ -1,12 +1,37 @@ -/* file.h */ +/* + * hexfile.h + * + * Copyright (C) 1999 Jonathan St-André + * Copyright (C) 1999 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ +#ifndef HEXFILE_H +#define HEXFILE_H 1 -#ifndef FILE_H -#define FILE_H 1 +void +int2asciihex(int val, char *str, int width); +int +asciihex2int(char *str); -void -LoadHexFile( const char *filename ); +unsigned int +Ascii2Hex(char *istring, int length); +void +LoadHexFile(const char *filename); -#endif /* FILE_H */ +#endif /* HEXFILE_H */