|
|
| version 1.38, 2004/02/16 05:09:00 | version 1.40, 2004/02/18 21:58:41 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "strres.h" | |
| #include "dosio.h" | #include "dosio.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "pccore.h" | #include "pccore.h" |
| Line 20 | Line 21 |
| BOOL biosrom = FALSE; | BOOL biosrom = FALSE; |
| static const char file_biosrom[] = "bios.rom"; | |
| static const char neccheck[] = "Copyright (C) 1983 by NEC Corporation"; | static const char neccheck[] = "Copyright (C) 1983 by NEC Corporation"; |
| // 00/05/18 MS-DOS6.2 on PC-9801VX calling proc | // 00/05/18 MS-DOS6.2 on PC-9801VX calling proc |
| Line 163 static const UINT16 biosoffset[0x20] = { | Line 162 static const UINT16 biosoffset[0x20] = { |
| BIOSOFST_1c, BIOSOFST_IRET, BIOSOFST_1e, BIOSOFST_1f}; | BIOSOFST_1c, BIOSOFST_IRET, BIOSOFST_1e, BIOSOFST_1f}; |
| void bios_init(void) { | void bios_initialize(void) { |
| char path[MAX_PATH]; | char path[MAX_PATH]; |
| FILEH fh; | FILEH fh; |
| Line 174 void bios_init(void) { | Line 173 void bios_init(void) { |
| // まぁDISK BASIC動くようになるからいいんじゃないですか? | // まぁDISK BASIC動くようになるからいいんじゃないですか? |
| // BASIC BIOSは 8086コードのように見えるけど… | // BASIC BIOSは 8086コードのように見えるけど… |
| getbiospath(path, file_biosrom, sizeof(path)); | getbiospath(path, str_biosrom, sizeof(path)); |
| fh = file_open_rb(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) { |
| Line 373 UINT MEMCALL biosfunc(UINT32 adrs) { | Line 372 UINT MEMCALL biosfunc(UINT32 adrs) { |
| case BIOS_BASE + BIOSOFST_WAIT: | case BIOS_BASE + BIOSOFST_WAIT: |
| CPU_STI; | CPU_STI; |
| if (fddmtr_biosbusy) { // ver0.26 | if (fddmtr.busy) { |
| CPU_IP--; | CPU_IP--; |
| CPU_REMCLOCK = -1; | CPU_REMCLOCK = -1; |
| } | } |