-Seg:a17 Size:1092657440 Owner:0x11c6\r
-Seg:19cb Size:-1669231296 Owner:0xc417\r
-\r
-MM_ShowMemory: Memory block order currupted!\r
+Seg:0 Size:88400 Owner:0x0\r
+Seg:1595 Size:4096 Owner:0x420\r
+Seg:1a3a Size:810080 Owner:0x0\r
+Seg:e000 Size:-917520 Owner:0x0\r
16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ)
GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ)
-all: 16.exe mmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe sountest.exe tsthimem.exe inputest.exe
+all: 16.exe exmmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe sountest.exe tsthimem.exe inputest.exe
#testemm.exe testemm0.exe fonttes0.exe miditest.exe
#
fmemtest.exe: fmemtest.$(OBJ) 16.lib
wcl $(FLAGS) fmemtest.$(OBJ) 16.lib
-mmtest.exe: mmtest.$(OBJ) 16.lib
- wcl $(FLAGS) mmtest.$(OBJ) 16.lib
+exmmtest.exe: exmmtest.$(OBJ) 16.lib
+ wcl $(FLAGS) exmmtest.$(OBJ) 16.lib
#
#executable's objects
tsthimem.$(OBJ): $(SRC)tsthimem.c
wcl $(FLAGS) -c $(SRC)tsthimem.c
-mmtest.$(OBJ): $(SRC)mmtest.c
- wcl $(FLAGS) -c $(SRC)mmtest.c
+exmmtest.$(OBJ): $(SRC)exmmtest.c
+ wcl $(FLAGS) -c $(SRC)exmmtest.c
#
#non executable objects libraries
exmm test
*/
#include <stdio.h>
-#include <dos.h>
+#include <bios.h>
#include "src/lib/16_head.h"
#include "src/lib/16_ca.h"
#include "src/lib/16_mm.h"
//#include "src/lib/modex16.h"
-#define FILERL
+//#define FILERL
//#define FILEINIT
void
if(baka) printf("\nyay!\n");
else printf("\npoo!\n");
#endif
+ printf("_bios_memsize=%u\n", _bios_memsize());
}
//
//---- length=farcoreleft();
//printf(" farheap making!\n");
- _fheapgrow();
+ /*_fheapgrow();
length=0xff;//UL*4UL;//_memavl();
start = mm->farheap = halloc(length, sizeof(byte));
//start = mm->farheap = _fmalloc(length);
length -= SAVEFARHEAP;
seglength = length / 16; // now in paragraphs
segstart = FP_SEG(start)+(FP_OFF(start)+15)/16;
- MML_UseSpace(segstart,seglength, mm);
- mmi->farheap = length;
+ MML_UseSpace(segstart,seglength, mm);*/
+ mmi->farheap = 0;//length;
mmi->mainmem = mmi->nearheap + mmi->farheap;
/*switch( _fheapchk() ) {
case _HEAPOK: