|
|
| version 1.18, 2003/12/05 09:46:15 | version 1.19, 2003/12/08 00:55:30 |
|---|---|
| Line 4 | Line 4 |
| #include "scrnmng.h" | #include "scrnmng.h" |
| #include "soundmng.h" | #include "soundmng.h" |
| #include "timemng.h" | #include "timemng.h" |
| #include "i286.h" | #include "cpucore.h" |
| #include "memory.h" | #include "memory.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| Line 408 static int flagsave_ext(NP2FFILE f, cons | Line 408 static int flagsave_ext(NP2FFILE f, cons |
| ret = flagsave_create(f, t); | ret = flagsave_create(f, t); |
| if (ret != NP2FLAG_FAILURE) { | if (ret != NP2FLAG_FAILURE) { |
| ret |= flagsave_save(f, &extmem, sizeof(extmem)); | ret |= flagsave_save(f, &extmem, sizeof(extmem)); |
| if (extmemmng_size) { | if (CPU_EXTMEM) { |
| ret |= flagsave_save(f, extmemmng_ptr, extmemmng_size); | ret |= flagsave_save(f, CPU_EXTMEM, CPU_EXTMEMSIZE); |
| } | } |
| ret |= flagsave_close(f); | ret |= flagsave_close(f); |
| } | } |
| Line 429 static int flagload_ext(NP2FFILE f, cons | Line 429 static int flagload_ext(NP2FFILE f, cons |
| } | } |
| if (!extmemmng_realloc(extmem.maxmem - 1)) { | if (!extmemmng_realloc(extmem.maxmem - 1)) { |
| pagemax = (extmem.maxmem - 1) << 8; | pagemax = (extmem.maxmem - 1) << 8; |
| if (extmemmng_size) { | if (CPU_EXTMEM) { |
| ret |= flagload_load(f, extmemmng_ptr, extmemmng_size); | ret |= flagload_load(f, CPU_EXTMEM, CPU_EXTMEMSIZE); |
| } | } |
| } | } |
| else { | else { |
| Line 439 static int flagload_ext(NP2FFILE f, cons | Line 439 static int flagload_ext(NP2FFILE f, cons |
| } | } |
| for (i=0; i<4; i++) { | for (i=0; i<4; i++) { |
| if (extmem.page[i] < pagemax) { | if (extmem.page[i] < pagemax) { |
| extmem.pageptr[i] = extmemmng_ptr + (extmem.page[i] << 12); | extmem.pageptr[i] = CPU_EXTMEM + (extmem.page[i] << 12); |
| } | } |
| else { | else { |
| extmem.pageptr[i] = mem + 0xc0000 + (i << 14); | extmem.pageptr[i] = mem + 0xc0000 + (i << 14); |