+Seg:0 Size:113936 Owner:0x37e\r
+Seg:1e1b Size:40768 Owner:0xab4\r
+Seg:280f Size:16384 Owner:0x32e2\r
+Seg:3259 Size:711280 Owner:0x468b\r
+Seg:e000 Size:31344 Owner:0x5aa8\r
+\r
+MM_ShowMemory: Memory block order currupted!\r
-0x004c:0a75 (P\80) = 3009\r
-0x004c:120a (P\11) = 3009\r
-0x002d:21e6 (-ä) = 3009\r
-0x004c:c36b (PÍ) = 3009\r
-0x004c:fd76 (PÐ) = 3009\r
#-zkl = current codepage
DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1# -zm
-CFLAGS=-zk0 -wo -x -mc -zu #-k32768#-k16384# -zdp# -zp16 -zq
+CFLAGS=-zk0 -wo -x -mc -zu -k16384# -zdp# -zp16 -zq
OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
FLAGS=-0 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) #-d2
SRC=src$(DIRSEP)
#include "src/lib/16_mm.h"
#include "src/lib/modex16.h"
+#define FILERL
+
void
main(int argc, char *argv[])
{
if(argv[1]) bakapee = argv[1];
else bakapee = "data/koishi~~.pcx";
//if(argv[2])
- // #define FILEINIT
+ //#define FILEINIT
textInit();\r
MM_Startup(&mm, &mmi);
printf(" done!\n");
printf("&main()=%Fp\n", *argv[0]);
+#ifdef FILERL
#ifdef FILEINIT
printf(" read\n");
if(CA_ReadFile(bakapee, &bigbuffer, &mm/*, &mmi*/))
baka=1;
else
baka=0;
+#endif
//MM_GetPtr(&bigbuffer, mmi.nearheap, &mm, &mmi);
//hmm functions in cache system use the buffered stuff
printf("size of big buffer~=%u\n", _bmsize(segu, bigbuffer));
MM_FreePtr(&bigbuffer, &mm);
MM_Shutdown(&mm);
printf(" done!\n");
+#ifdef FILERL
free(bakapee);
//printf("_bios_memsize=%u\n", _bios_memsize());
if(baka) printf("\nyay!\n");
else printf("\npoo!\n");
+#endif
}
#endif
-#define SAVENEARHEAP 0x200 // space to leave in data segment
+#define SAVENEARHEAP 0x8000 // space to leave in data segment
#define SAVEFARHEAP 0 // space to leave in far heap
-#define BUFFERSIZE 0x1000 // miscelanious, allways available buffer
+#define BUFFERSIZE 0x4000 // miscelanious, allways available buffer
-#define MAXBLOCKS 640
+#define MAXBLOCKS 720