home *** CD-ROM | disk | FTP | other *** search
- /*
-
- Load .HEX format file into Z-80 memory.
-
- */
-
- /* #include <stdio.h> */
- #define NULL 0
- #include <strings.h>
- #include <ctype.h>
- #include "z80.h"
-
- BYTE hexval(),hex_byte(),csum();
-
- BYTE hexval(c)
- char c;
- {
- char *l;
- static char digits[]="0123456789ABCDEF";
-
- if (islower(c))
- c=toupper(c);
- l=index(digits,c);
- if (l==NULL)
- return 255;
- return l-digits;
- }
-
-