|
|
| version 1.36, 2004/02/18 06:52:33 | version 1.42, 2004/07/01 11:42:54 |
|---|---|
| Line 8 | Line 8 |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "gdc_sub.h" | |
| #include "cbuscore.h" | #include "cbuscore.h" |
| #include "ideio.h" | |
| #include "sasiio.h" | #include "sasiio.h" |
| #include "scsiio.h" | #include "scsiio.h" |
| #include "pc9861k.h" | #include "pc9861k.h" |
| Line 29 | Line 31 |
| #include "keydisp.h" | #include "keydisp.h" |
| #include "hostdrv.h" | #include "hostdrv.h" |
| #include "calendar.h" | #include "calendar.h" |
| #include "keystat.h" | |
| #if defined(MACOS) | #if defined(MACOS) |
| #define CRCONST str_cr | #define CRCONST str_cr |
| Line 704 static int flagload_gij(STFLAGH sfh, con | Line 707 static int flagload_gij(STFLAGH sfh, con |
| // ---- FM | // ---- FM |
| #if !defined(DISABLE_SOUND) | |
| enum { | enum { |
| FLAG_MG = 0x0001, | FLAG_MG = 0x0001, |
| FLAG_FM1A = 0x0002, | FLAG_FM1A = 0x0002, |
| Line 903 static int flagload_fm(STFLAGH sfh, cons | Line 908 static int flagload_fm(STFLAGH sfh, cons |
| } | } |
| if (saveflg & FLAG_CS4231) { | if (saveflg & FLAG_CS4231) { |
| ret |= statflag_read(sfh, &cs4231, sizeof(cs4231)); | ret |= statflag_read(sfh, &cs4231, sizeof(cs4231)); |
| cs4231.proc = cs4231dec[cs4231.reg.datafmt >> 4]; | |
| } | } |
| // 復元。 これ移動すること! | // 復元。 これ移動すること! |
| rhythm_update(&rhythm); | |
| adpcm_update(&adpcm); | adpcm_update(&adpcm); |
| pcm86gen_update(); | pcm86gen_update(); |
| if (saveflg & FLAG_PCM86) { | if (saveflg & FLAG_PCM86) { |
| Line 919 static int flagload_fm(STFLAGH sfh, cons | Line 922 static int flagload_fm(STFLAGH sfh, cons |
| (void)t; | (void)t; |
| return(ret); | return(ret); |
| } | } |
| #endif | |
| // ---- disk | // ---- disk |
| Line 1226 const SFENTRY *tblterm; | Line 1230 const SFENTRY *tblterm; |
| ret |= flagsave_ext(&sffh->sfh, tbl); | ret |= flagsave_ext(&sffh->sfh, tbl); |
| break; | break; |
| #if !defined(DISABLE_SOUND) | |
| case STATFLAG_FM: | case STATFLAG_FM: |
| ret |= flagsave_fm(&sffh->sfh, tbl); | ret |= flagsave_fm(&sffh->sfh, tbl); |
| break; | break; |
| #endif | |
| case STATFLAG_GIJ: | case STATFLAG_GIJ: |
| ret |= flagsave_gij(&sffh->sfh, tbl); | ret |= flagsave_gij(&sffh->sfh, tbl); |
| Line 1296 const SFENTRY *tblterm; | Line 1302 const SFENTRY *tblterm; |
| case STATFLAG_EVT: | case STATFLAG_EVT: |
| case STATFLAG_EXT: | case STATFLAG_EXT: |
| case STATFLAG_GIJ: | case STATFLAG_GIJ: |
| #if !defined(DISABLE_SOUND) | |
| case STATFLAG_FM: | case STATFLAG_FM: |
| #endif | |
| #if defined(SUPPORT_HOSTDRV) | #if defined(SUPPORT_HOSTDRV) |
| case STATFLAG_HDRV: | case STATFLAG_HDRV: |
| #endif | #endif |
| Line 1348 const SFENTRY *tblterm; | Line 1356 const SFENTRY *tblterm; |
| sxsi_trash(); | sxsi_trash(); |
| ret |= flagload_common(&sffh->sfh, np2tbl); | ret |= flagload_common(&sffh->sfh, np2tbl); |
| nevent_init(); | |
| CPU_RESET(); | CPU_RESET(); |
| CPU_SETEXTSIZE((UINT32)pccore.extmem); | CPU_SETEXTSIZE((UINT32)pccore.extmem); |
| nevent_allreset(); | |
| sound_changeclock(); | sound_changeclock(); |
| beep_changeclock(); | beep_changeclock(); |
| sound_reset(); | sound_reset(); |
| #if defined(SUPPORT_WAVEMIX) | fddmtrsnd_bind(); |
| wavemix_bind(); | |
| #endif | |
| iocore_reset(); // サウンドでpicを呼ぶので… | iocore_reset(); // サウンドでpicを呼ぶので… |
| cbuscore_reset(); | cbuscore_reset(); |
| Line 1419 const SFENTRY *tblterm; | Line 1425 const SFENTRY *tblterm; |
| ret |= flagload_ext(&sffh->sfh, tbl); | ret |= flagload_ext(&sffh->sfh, tbl); |
| break; | break; |
| #if !defined(DISABLE_SOUND) | |
| case STATFLAG_FM: | case STATFLAG_FM: |
| ret |= flagload_fm(&sffh->sfh, tbl); | ret |= flagload_fm(&sffh->sfh, tbl); |
| break; | break; |
| #endif | |
| case STATFLAG_GIJ: | case STATFLAG_GIJ: |
| ret |= flagload_gij(&sffh->sfh, tbl); | ret |= flagload_gij(&sffh->sfh, tbl); |