#-zk0 = kanji support~
#-zkl = current codepage
-DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1# -zm
-CFLAGS=-zk0 -wo -x -mc -zu -k32768#16384# -zdp# -zp16 -zq
+DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 -zm
+CFLAGS=-zk0 -wo -x -mc -zu# -k16384# -zdp# -zp16 -zq
OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS)
SRC=src$(DIRSEP)
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 test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.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
#
sountest.exe: sountest.$(OBJ) 16.lib
wcl $(FLAGS) sountest.$(OBJ) 16.lib
-miditest.exe: miditest.$(OBJ) 16.lib
- wcl $(FLAGS) miditest.$(OBJ) 16.lib
+miditest.exe: miditest.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
+ wcl $(FLAGS) miditest.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
-tsthimem.exe: tsthimem.$(OBJ) 16.lib
- wcl $(FLAGS) tsthimem.$(OBJ) 16.lib
+tsthimem.exe: tsthimem.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
+ wcl $(FLAGS) tsthimem.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
-testemm.exe: testemm.$(OBJ) 16.lib
- wcl $(FLAGS) testemm.$(OBJ) 16.lib
+testemm.exe: testemm.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
+ wcl $(FLAGS) testemm.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
-testemm0.exe: testemm0.$(OBJ) 16.lib
- wcl $(FLAGS) testemm0.$(OBJ) 16.lib
+testemm0.exe: testemm0.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
+ wcl $(FLAGS) testemm0.$(OBJ) 16.lib $(DOSLIBEXMMOBJ)
pcxtest.exe: pcxtest.$(OBJ) gfx.lib
wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib
gfx.lib: $(GFXLIBOBJS)
wlib -b gfx.lib $(GFXLIBOBJS)
-doslib.lib: $(DOSLIBOBJ) $(DOSLIBEXMMOBJ)# $(SRCLIB)cpu.lib
- wlib -b doslib.lib $(DOSLIBOBJ) $(DOSLIBEXMMOBJ)# $(SRCLIB)cpu.lib
+doslib.lib: $(DOSLIBOBJ) # $(SRCLIB)cpu.lib
+ wlib -b doslib.lib $(DOSLIBOBJ) # $(SRCLIB)cpu.lib
modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c
wcl $(FLAGS) -c $(SRCLIB)modex16.c
*
*/
/*
- input test
+ exmm test
*/
-#include "src/lib/16_ca.h"
-#include "src/lib/16_mm.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
main(int argc, char *argv[])
{
- static mminfo_t mm; mminfotype mmi;
- static memptr bigbuffer;
- static __segment segu;
- static char *bakapee;
+ //mminfo_t mm; mminfotype mmi;
+ //memptr bigbuffer;
+ //__segment segu;
+ //char *bakapee;
word baka;
//static page_t screen;
printf("&main()=%Fp\n", *argv[0]);
printf("&argc=%Fp\n", FP_SEG(&argc));
- printf("&segu=%Fp\n", segu);
+//++++ printf("&segu=%Fp\n", segu);
- bakapee = _nmalloc(64);
+ //++++bakapee = malloc(64);
// memset(bakapee, 0, 64);
- mm.mmstarted=0;
+//++++ mm.mmstarted=0;
- if(argv[1]) bakapee = argv[1];
- else bakapee = "data/koishi~~.pcx";
+ /*if(argv[1]) bakapee = argv[1];
+ else bakapee = "data/koishi~~.pcx";*/
- textInit();\r
+//++++ textInit();\r
/* setup camera and screen~ */
//bug!!!\r
screen.height += (16*2);*/
printf("&main()=%Fp start MM\n", *argv[0]);
- MM_Startup(&mm, &mmi);
- //segu=mmi.segu;
+//++++ MM_Startup(&mm, &mmi);
printf(" done!\n");
/*if(FP_SEG(*argv[0])==0)
{
}*/
printf("&main()=%Fp\n", *argv[0]);
printf("&argc=%Fp\n", FP_SEG(&argc));
- printf("&segu=%Fp\n", segu);
+//++++ printf("&segu=%Fp\n", segu);
#ifdef FILERL
#ifdef FILEINIT
printf(" read\n");
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));
+//++++ printf("size of big buffer~=%u\n", _bmsize(segu, bigbuffer));
printf("dark purple = purgable\n");
printf("medium blue = non purgable\n");
printf("red = locked\n");
- getch();
- //modexEnter();
- //modexShowPage(&screen);
- MM_ShowMemory(/*&screen, */&mm);
- //getch();
- MM_DumpData(&mm);
- //modexLeave();
- MM_Report(&mm, &mmi);
+ //++++getch();
+ //++++modexEnter();
+ //++++modexShowPage(&screen);
+ //++++MM_ShowMemory(/*&screen, */&mm);
+ //++++getch();
+ //++++MM_DumpData(&mm);
+ //++++modexLeave();
+ //++++MM_Report(&mm, &mmi);
printf(" stop!\n");
- MM_FreePtr(&bigbuffer, &mm);
- MM_Shutdown(&mm);
+//++++ MM_FreePtr(&bigbuffer, &mm);
+//++++ MM_Shutdown(&mm);
printf(" done!\n");
#ifdef FILERL
- free(bakapee);
- //printf("_bios_memsize=%u\n", _bios_memsize());
+ //++++free(bakapee);
if(baka) printf("\nyay!\n");
else printf("\npoo!\n");
#endif