|
|
| version 1.8, 2003/12/01 10:45:46 | version 1.9, 2003/12/04 06:41:23 |
|---|---|
| Line 42 static const BYTE nosyscode[] = { | Line 42 static const BYTE nosyscode[] = { |
| 0x57,0x04,0x47,0x04,0x39,0x00,0x00}; | 0x57,0x04,0x47,0x04,0x39,0x00,0x00}; |
| void bios_getpath(char *path, const char *name, int maxlen) { | |
| const char *p; | |
| p = np2cfg.biospath; | |
| if (p[0]) { | |
| file_cpyname(path, p, maxlen); | |
| file_setseparator(path, maxlen); | |
| file_catname(path, name, maxlen); | |
| } | |
| else { | |
| file_cpyname(path, file_getcd(name), maxlen); | |
| } | |
| } | |
| static void bios_reinitbyswitch(void) { | static void bios_reinitbyswitch(void) { |
| BYTE prxcrt; | BYTE prxcrt; |
| Line 135 static const UINT16 biosoffset[0x20] = { | Line 150 static const UINT16 biosoffset[0x20] = { |
| void bios_init(void) { | void bios_init(void) { |
| char path[MAX_PATH]; | |
| FILEH fh; | FILEH fh; |
| UINT i; | UINT i; |
| UINT pos; | UINT pos; |
| Line 143 void bios_init(void) { | Line 159 void bios_init(void) { |
| // まぁDISK BASIC動くようになるからいいんじゃないですか? | // まぁDISK BASIC動くようになるからいいんじゃないですか? |
| // BASIC BIOSは 8086コードのように見えるけど… | // BASIC BIOSは 8086コードのように見えるけど… |
| fh = file_open_c(file_biosrom); | bios_getpath(path, file_biosrom, sizeof(path)); |
| fh = file_open_rb(path); | |
| if (fh != FILEH_INVALID) { | if (fh != FILEH_INVALID) { |
| if (file_read(fh, mem + 0x0e8000, 0x18000) == 0x18000) { | if (file_read(fh, mem + 0x0e8000, 0x18000) == 0x18000) { |
| biosrom = TRUE; | biosrom = TRUE; |