From 2bc6e98511fbe156f4ec68b1b7dbc7c8c03f866f Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 27 Jun 2015 13:19:53 -0500 Subject: [PATCH] mm test~ Signed-off-by: sparky4 --- exmmtest.exe | Bin 44932 -> 45196 bytes src/lib/16_mm.c | 89 +++++++----------------------------------------- src/lib/16_mm.h | 78 ++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 87 insertions(+), 80 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index 87716ed3294f9e181e6dddfc7f48d54093c54893..ca52f7f537d6dd8b1fd127214eae72fe6e992269 100644 GIT binary patch delta 15671 zcma)jd0do7(tkhCJTRQYeJF?^H+T`vc%XPPXq3YvXiQ{8VbFvtFsRw65K-gfgA-yW z8k1}yvb)Ke>~8$&?u(j4qETX8*E1fNRikb)1f#@*5M-J6+x^S{=Jk)?!>4BYsj9B7 zuCA)Cex707Rk7wfu`+$ZQehmikQnj~vDseG5*I>F`4SRN)XQ@wA^w1=fENIt16$V9+iKr z{0^`I@G0Ow{Ro-WpO8H8E(ausRuXb2l#rk>LIwh20aE~n03SvW(hkTPM97PPRe=9Q z5u%SKBid11W*Hb7qA=f9YALwWHI0*K%WL4z^j03(+GJ21M2~| z(S9D^ho-~)GYBaIYzAxx{2k!9o|gX;*f5A>>8x+~)>eNh>8u|+)dn^s026CnYe)T6 z2UHScDz#%yx!9SkIlgqK7%7y}qhgL{v!t&-54Z?8N0T%Ihn$!8PCilKcC#W@4m>Bx zVHYL$%jU@Hhte9&0g1?A&C=c}oUWAvzon}+@!|k~`k^Mp^dNTq(}CSt`@C z>?eDtD(`jLHXTL}`i_(+{FgRKlZ0~W>NG+)M8`WN3Rmbdr%?kwlxm!JNqfEb+ibS5 z4<+};3a_e%pH%qn^~Npz%qiI8Q|W*QsX3E$OlQ48zjF$TxgsSUYj{IC{r&0FHD}~| z78n$&&@kty#4A$yknQqm`DkB$>kB@$oL`a+U3-0$tzB$r zTI3w&T_wr)YI3^uvc5*r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6mykXHX0GbKP=*pR`VYG6UgSJ4kEj3mz+d|ruMDKeKM2rW z;bo+@zkcAa(?JkSZzA>B>96b0E5|3&*q#2`g}h>-lXnJ`D7?&4Ts1bA3;%6B+BxSd zoRcZ2^HEJO60ubhc{)qt&_WfuxPA;_{ z_3AUe&y2zSG|q$i%$|TksmA#g>zETg4Bcacvw}6+4;S-FKaGy+|8dPjJK*@Xci;8T Uc{f6%xw>2Yc%3MHJB*P33q#2!IsgCw diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 79bb851e..1ea85fef 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -44,75 +44,6 @@ EMS / XMS unmanaged routines #include "src/lib/16_mm.h" -/* -============================================================================= - - LOCAL INFO - -============================================================================= -*/ - -#define LOCKBIT 0x80 // if set in attributes, block cannot be moved -#define PURGEBITS 3 // 0-3 level, 0= unpurgable, 3= purge first -#define PURGEMASK 0xfffc -#define BASEATTRIBUTES 0 // unlocked, non purgable - -#define MAXUMBS 10 - -typedef struct mmblockstruct -{ - unsigned start,length; - unsigned attributes; - memptr *useptr; // pointer to the segment start - struct mmblockstruct far *next; -} mmblocktype; - - -//#define GETNEWBLOCK {if(!(mmnew=mmfree))Quit("MM_GETNEWBLOCK: No free blocks!");mmfree=mmfree->next;} -#define GETNEWBLOCK {if(!mmfree)MML_ClearBlock();mmnew=mmfree;mmfree=mmfree->next;} -#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mmfree;mmfree=x;} - -/* -============================================================================= - - GLOBAL VARIABLES - -============================================================================= -*/ - -mminfotype mminfo; -memptr bufferseg; -boolean mmerror; - -void (* beforesort) (void); -void (* aftersort) (void); - -/* -============================================================================= - - LOCAL VARIABLES - -============================================================================= -*/ - -boolean mmstarted; - -void huge *hugeheap; -void far *farheap; -void *nearheap; - -mmblocktype far mmblocks[MAXBLOCKS] - ,far *mmhead,far *mmfree,far *mmrover,far *mmnew; - -boolean bombonerror; - -unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; - -void (* XMSaddr) (void); // far pointer to XMS driver - -unsigned numUMBs,UMBbase[MAXUMBS]; - - /* ====================== = @@ -536,8 +467,6 @@ void MML_ClearBlock (void) =================== */ -static char *ParmStringsexmm[] = {"noems","noxms",""}; - void MM_Startup (void) { int i; @@ -613,6 +542,7 @@ void MM_Startup (void) if (MML_CheckForEMS()) { + printf("EMS!\n"); MML_SetupEMS(); // allocate space MML_UseSpace (EMSpageframe,EMSpagesmapped*0x400); MM_MapEMS(); // map in used pages @@ -631,7 +561,10 @@ emsskip: } if (MML_CheckForXMS()) + { + printf("XMS!\n"); MML_SetupXMS(); // allocate as many UMBs as possible + } // // allocate the misc buffer @@ -1009,7 +942,7 @@ void MM_SortMem (void) void MM_ShowMemory (void) { mmblocktype far *scan; - unsigned color,temp; + unsigned color,temp;//, i; long end,owner; char scratch[80],str[10]; @@ -1039,12 +972,14 @@ void MM_ShowMemory (void) return; } end = scan->start+scan->length-1; -//**** VW_Hlin(scan->start,(unsigned)end,0,color); -//**** VW_Plot(scan->start,0,15); -//**** if (scan->next->start > end+1) -//**** VW_Hlin(end+1,scan->next->start,0,0); // black = free +//++++ VW_Hlin(scan->start,(unsigned)end,0,color); +//++++ VW_Plot(scan->start,0,15); + if (scan->next->start > end+1) +//++++ VW_Hlin(end+1,scan->next->start,0,0); // black = free //****#if 0 +printf("Location:"); +printf("%Fp\t", scan->start); strcpy (scratch,"Size:"); ltoa ((long)scan->length*16,str,10); strcat (scratch,str); @@ -1054,7 +989,7 @@ ultoa (owner,str,16); strcat (scratch,str); strcat (scratch,"\n"); //++++write (debughandle,scratch,strlen(scratch)); -printf("%s\n", scratch); +fprintf(stdout, "%s", scratch); //****#endif scan = scan->next; diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 663c7df9..27fa00b0 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -80,7 +80,7 @@ //========================================================================== -typedef void /*_seg*/ * memptr; +typedef void /*__seg*/ * memptr; typedef struct { @@ -89,12 +89,84 @@ typedef struct //========================================================================== -extern mminfotype mminfo; +/*extern mminfotype mminfo; extern memptr bufferseg; extern boolean mmerror; extern void (* beforesort) (void); -extern void (* aftersort) (void); +extern void (* aftersort) (void);*/ + +//========================================================================== + +/* +============================================================================= + + LOCAL INFO + +============================================================================= +*/ + +#define LOCKBIT 0x80 // if set in attributes, block cannot be moved +#define PURGEBITS 3 // 0-3 level, 0= unpurgable, 3= purge first +#define PURGEMASK 0xfffc +#define BASEATTRIBUTES 0 // unlocked, non purgable + +#define MAXUMBS 10 + +typedef struct mmblockstruct +{ + unsigned start,length; + unsigned attributes; + memptr *useptr; // pointer to the segment start + struct mmblockstruct far *next; +} mmblocktype; + + +//#define GETNEWBLOCK {if(!(mmnew=mmfree))Quit("MM_GETNEWBLOCK: No free blocks!");mmfree=mmfree->next;} +#define GETNEWBLOCK {if(!mmfree)MML_ClearBlock();mmnew=mmfree;mmfree=mmfree->next;} +#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mmfree;mmfree=x;} + +/* +============================================================================= + + GLOBAL VARIABLES + +============================================================================= +*/ + +mminfotype mminfo; +memptr bufferseg; +boolean mmerror; + +void (* beforesort) (void); +void (* aftersort) (void); + +static char *ParmStringsexmm[] = {"noems","noxms",""}; + +/* +============================================================================= + + LOCAL VARIABLES + +============================================================================= +*/ + +boolean mmstarted; + +void huge *hugeheap; +void far *farheap; +void *nearheap; + +mmblocktype far mmblocks[MAXBLOCKS] + ,far *mmhead,far *mmfree,far *mmrover,far *mmnew; + +boolean bombonerror; + +unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; + +void (* XMSaddr) (void); // far pointer to XMS driver + +unsigned numUMBs,UMBbase[MAXUMBS]; //========================================================================== -- 2.39.5