From: sparky4 Date: Thu, 2 Jul 2015 20:23:55 +0000 (-0500) Subject: ok working on extention X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=942039e324656f9af2f87697d2e7f53af93d05ad;p=16.git ok working on extention modified: 16.exe modified: exmmtest.exe modified: fmemtest.exe modified: fonttest.exe modified: inputest.exe modified: maptest.exe modified: src/exmmtest.c modified: src/lib/16_ca.c modified: src/lib/16_mm.c --- diff --git a/16.exe b/16.exe index 11b01a01..d407dac1 100644 Binary files a/16.exe and b/16.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index 9906399d..b5f310fe 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/fmemtest.exe b/fmemtest.exe index ef19d445..f74dc944 100644 Binary files a/fmemtest.exe and b/fmemtest.exe differ diff --git a/fonttest.exe b/fonttest.exe index 9fd9ea35..12c438dd 100644 Binary files a/fonttest.exe and b/fonttest.exe differ diff --git a/inputest.exe b/inputest.exe index 25af2d3b..2befbe06 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/maptest.exe b/maptest.exe index aae06068..ed045368 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/src/exmmtest.c b/src/exmmtest.c index dd276c57..e0904292 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -38,7 +38,7 @@ main(int argc, char *argv[]) // memset(bakapee, 0, 64); mm.mmstarted=0; - if(argv[1]) bakapee = strdup(argv[1]); + if(argv[1]) bakapee = argv[1]; else bakapee = "data/koishi~~.pcx"; printf("start!\n"); diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index 49f9c1be..e2963290 100644 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -219,9 +219,14 @@ void CAL_GetGrChunkLength (int chunk) boolean CA_FarRead (int handle, byte huge *dest, dword length) { boolean flag; - boolean fat; - if (length>0xffffl) fat=true; + dword fat=0; + word segm=0; + while(length>0xffffl) + { + fat=length-0xffffl; + segm++; // printf("CA_FarRead doesn't support 64K reads yet!\n"); + } __asm { @@ -264,9 +269,14 @@ End: boolean CA_FarWrite (int handle, byte huge *source, dword length) { boolean flag; - boolean fat; - if (length>0xffffl) fat=true; -// printf("CA_FarWrite doesn't support 64K reads yet!\n"); + dword fat=0; + word segm=0; + while(length>0xffffl) + { + fat=length-0xffffl; + segm++; +// printf("CA_FarRead doesn't support 64K reads yet!\n"); + } __asm { diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 95fe71ce..492a5119 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -590,7 +590,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) //printf("EMS1\n"); MML_SetupEMS(mm); // allocate space printf("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); //bug! - printf("TODO: EMS4! AND EMS 3.2 MASSIVE DATA HANDLMENT!\N"); + //TODO: EMS4! AND EMS 3.2 MASSIVE DATA HANDLMENT! MML_UseSpace(mm->EMSpageframe,mm->EMSpagesmapped*0x400, mm); //printf("EMS3\n"); MM_MapEMS(mm); // map in used pages