From: sparky4 Date: Sat, 27 Jun 2015 20:29:55 +0000 (-0500) Subject: exmm wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=53b06bd2adb635673b4e8eceea57901d61b65b50;p=16.git exmm wwww Signed-off-by: sparky4 --- diff --git a/16.LIB b/16.LIB index 6967e3b4..523265fe 100644 Binary files a/16.LIB and b/16.LIB differ diff --git a/16.exe b/16.exe index 43d3b6dd..7c2c48b7 100644 Binary files a/16.exe and b/16.exe differ diff --git a/GFX.LIB b/GFX.LIB index 628f961b..1e340935 100644 Binary files a/GFX.LIB and b/GFX.LIB differ diff --git a/exmmtest.exe b/exmmtest.exe index ac09f6b4..3bd7d73b 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/fonttest.exe b/fonttest.exe index 168bbaa8..9fd9ea35 100644 Binary files a/fonttest.exe and b/fonttest.exe differ diff --git a/inputest.exe b/inputest.exe index c7826587..97ba47cd 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/makefile b/makefile index d49ccf9e..0562cef2 100644 --- a/makefile +++ b/makefile @@ -1,176 +1,176 @@ -#-zk0u = translate kanji to unicode... wwww -#-zk0 = kanji support~ -#-zkl = current codepage - -MFLAGS=-mh# -zm -CFLAGS=-zkl -wo -x#### -mc# -zdp# -zp16 -zq -OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+ -FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) -REMOVECOMMAND=del -DIRSEP=\ -OBJ=obj -SRC=src$(DIRSEP) -SRCLIB=$(SRC)lib$(DIRSEP) -JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) -EXMMLIB=$(SRCLIB)exmm$(DIRSEP) -WCPULIB=$(SRCLIB)wcpu$(DIRSEP) - -16LIBOBJS = 16_in.$(OBJ) wcpu.$(OBJ) lib_head.$(OBJ) scroll16.$(OBJ) 16text.$(OBJ) -GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) - -all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe fonttest.exe inputest.exe exmmtest.exe - -# -#executables -# -16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - -scroll.exe: scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) - wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) -scroll.$(OBJ): $(SRC)scroll.c - wcl $(FLAGS) -c $(SRC)scroll.c -test.exe: test.$(OBJ) 16.lib - wcl $(FLAGS) test.$(OBJ) 16.lib - -test2.exe: test2.$(OBJ) 16.lib - wcl $(FLAGS) test2.$(OBJ) 16.lib - -fonttest.exe: fonttest.$(OBJ) 16.lib - wcl $(FLAGS) fonttest.$(OBJ) 16.lib - -inputest.exe: inputest.$(OBJ) 16.lib - wcl $(FLAGS) inputest.$(OBJ) 16.lib - -pcxtest.exe: pcxtest.$(OBJ) 16.lib - wcl $(FLAGS) pcxtest.$(OBJ) 16.lib - -palettec.exe: palettec.$(OBJ) modex16.$(OBJ) - wcl $(FLAGS) palettec.$(OBJ) modex16.$(OBJ) - -maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - -maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib - wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib - -emmtest.exe: emmtest.$(OBJ) memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ) - -emsdump.exe: emsdump.$(OBJ) memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ) - -fmemtest.exe: fmemtest.$(OBJ)# memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) fmemtest.$(OBJ)# memory.$(OBJ) - -exmmtest.exe: exmmtest.$(OBJ) 16_mm.$(OBJ) - wcl $(FLAGS) $(MFLAGS) exmmtest.$(OBJ) 16_mm.$(OBJ) - -# -#executable's objects -# -16.$(OBJ): $(SRC)16.h $(SRC)16.c - wcl $(FLAGS) -c $(SRC)16.c - -test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)test.c - -test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)test2.c - -pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)pcxtest.c - -palettec.$(OBJ): $(SRC)palettec.c - wcl $(FLAGS) -c $(SRC)palettec.c - -maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)maptest.c - -maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h - wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c - -emmtest.$(OBJ): $(SRC)emmtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c - -emsdump.$(OBJ): $(SRC)emsdump.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c - -fmemtest.$(OBJ): $(SRC)fmemtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)fmemtest.c - -fonttest.$(OBJ): $(SRC)fonttest.c - wcl -c $(SRC)fonttest.c - -inputest.$(OBJ): $(SRC)inputest.c - wcl $(FLAGS) -c $(SRC)inputest.c - -exmmtest.$(OBJ): $(SRC)exmmtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)exmmtest.c - -# -#non executable objects libraries -# -16.lib: $(16LIBOBJS) gfx.lib - wlib -b 16.lib $(16LIBOBJS) gfx.lib - -gfx.lib: $(GFXLIBOBJS) - wlib -b gfx.lib $(GFXLIBOBJS) - -modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c - wcl $(FLAGS) -c $(SRCLIB)modex16.c - -dos_kb.$(OBJ): $(SRCLIB)dos_kb.h $(SRCLIB)dos_kb.c - wcl $(FLAGS) -c $(SRCLIB)dos_kb.c - -bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c - wcl $(FLAGS) -c $(SRCLIB)bitmap.c - -planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c - wcl $(FLAGS) -c $(SRCLIB)planar.c - -scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c - wcl $(FLAGS) -c $(SRCLIB)scroll16.c - -wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c - wcl $(FLAGS) -c $(WCPULIB)wcpu.c - -16text.$(OBJ): $(SRCLIB)16text.c - wcl -c $(SRCLIB)16text.c - -mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16.lib - wcl $(FLAGS) -c $(SRCLIB)mapread.c 16.lib - -fmapread.$(OBJ): $(SRCLIB)fmapread.h $(SRCLIB)fmapread.c 16.lib - wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c 16.lib - -16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c - wcl $(FLAGS) -c $(SRCLIB)16_in.c - -16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c - wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)16_mm.c - -lib_head.$(OBJ): $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c - wcl $(FLAGS) -c $(SRCLIB)lib_head.c - -jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c - wcl $(FLAGS) -c $(JSMNLIB)jsmn.c - -farjsmn.$(OBJ): $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c - wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c - -memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c - wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c - -# -#other~ -# -clean: .symbolic -# @$(REMOVECOMMAND) *.$(OBJ) - @$(REMOVECOMMAND) *.OBJ -# @$(REMOVECOMMAND) *.out -# @$(REMOVECOMMAND) *.OUT - @$(REMOVECOMMAND) makefi~1 - @$(REMOVECOMMAND) __WCL__.LNK -# @$(REMOVECOMMAND) *.smp - @$(REMOVECOMMAND) *.SMP +#-zk0u = translate kanji to unicode... wwww +#-zk0 = kanji support~ +#-zkl = current codepage + +MFLAGS=-mh# -zm +CFLAGS=-zkl -wo -x#### -mc# -zdp# -zp16 -zq +OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+ +FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) +REMOVECOMMAND=del +DIRSEP=\ +OBJ=obj +SRC=src$(DIRSEP) +SRCLIB=$(SRC)lib$(DIRSEP) +JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) +EXMMLIB=$(SRCLIB)exmm$(DIRSEP) +WCPULIB=$(SRCLIB)wcpu$(DIRSEP) + +16LIBOBJS = 16_in.$(OBJ) wcpu.$(OBJ) lib_head.$(OBJ) scroll16.$(OBJ) 16text.$(OBJ) +GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) + +all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe fonttest.exe inputest.exe exmmtest.exe + +# +#executables +# +16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + +scroll.exe: scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) + wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) +scroll.$(OBJ): $(SRC)scroll.c + wcl $(FLAGS) -c $(SRC)scroll.c +test.exe: test.$(OBJ) 16.lib + wcl $(FLAGS) test.$(OBJ) 16.lib + +test2.exe: test2.$(OBJ) 16.lib + wcl $(FLAGS) test2.$(OBJ) 16.lib + +fonttest.exe: fonttest.$(OBJ) 16.lib + wcl $(FLAGS) fonttest.$(OBJ) 16.lib + +inputest.exe: inputest.$(OBJ) 16.lib + wcl $(FLAGS) inputest.$(OBJ) 16.lib + +pcxtest.exe: pcxtest.$(OBJ) 16.lib + wcl $(FLAGS) pcxtest.$(OBJ) 16.lib + +palettec.exe: palettec.$(OBJ) modex16.$(OBJ) + wcl $(FLAGS) palettec.$(OBJ) modex16.$(OBJ) + +maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + +maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib + wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib + +emmtest.exe: emmtest.$(OBJ) memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ) + +emsdump.exe: emsdump.$(OBJ) memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ) + +fmemtest.exe: fmemtest.$(OBJ)# memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) fmemtest.$(OBJ)# memory.$(OBJ) + +exmmtest.exe: exmmtest.$(OBJ) 16_mm.$(OBJ) + wcl $(FLAGS) $(MFLAGS) exmmtest.$(OBJ) 16_mm.$(OBJ) + +# +#executable's objects +# +16.$(OBJ): $(SRC)16.h $(SRC)16.c + wcl $(FLAGS) -c $(SRC)16.c + +test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h + wcl $(FLAGS) -c $(SRC)test.c + +test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h + wcl $(FLAGS) -c $(SRC)test2.c + +pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h + wcl $(FLAGS) -c $(SRC)pcxtest.c + +palettec.$(OBJ): $(SRC)palettec.c + wcl $(FLAGS) -c $(SRC)palettec.c + +maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h + wcl $(FLAGS) -c $(SRC)maptest.c + +maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h + wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c + +emmtest.$(OBJ): $(SRC)emmtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c + +emsdump.$(OBJ): $(SRC)emsdump.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c + +fmemtest.$(OBJ): $(SRC)fmemtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)fmemtest.c + +fonttest.$(OBJ): $(SRC)fonttest.c + wcl -c $(SRC)fonttest.c + +inputest.$(OBJ): $(SRC)inputest.c + wcl $(FLAGS) -c $(SRC)inputest.c + +exmmtest.$(OBJ): $(SRC)exmmtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)exmmtest.c + +# +#non executable objects libraries +# +16.lib: $(16LIBOBJS) gfx.lib + wlib -b 16.lib $(16LIBOBJS) gfx.lib + +gfx.lib: $(GFXLIBOBJS) + wlib -b gfx.lib $(GFXLIBOBJS) + +modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c + wcl $(FLAGS) -c $(SRCLIB)modex16.c + +dos_kb.$(OBJ): $(SRCLIB)dos_kb.h $(SRCLIB)dos_kb.c + wcl $(FLAGS) -c $(SRCLIB)dos_kb.c + +bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c + wcl $(FLAGS) -c $(SRCLIB)bitmap.c + +planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c + wcl $(FLAGS) -c $(SRCLIB)planar.c + +scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c + wcl $(FLAGS) -c $(SRCLIB)scroll16.c + +wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c + wcl $(FLAGS) -c $(WCPULIB)wcpu.c + +16text.$(OBJ): $(SRCLIB)16text.c + wcl -c $(SRCLIB)16text.c + +mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16.lib + wcl $(FLAGS) -c $(SRCLIB)mapread.c 16.lib + +fmapread.$(OBJ): $(SRCLIB)fmapread.h $(SRCLIB)fmapread.c 16.lib + wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c 16.lib + +16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c + wcl $(FLAGS) -c $(SRCLIB)16_in.c + +16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c + wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)16_mm.c + +lib_head.$(OBJ): $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c + wcl $(FLAGS) -c $(SRCLIB)lib_head.c + +jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c + wcl $(FLAGS) -c $(JSMNLIB)jsmn.c + +farjsmn.$(OBJ): $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c + wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c + +memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c + wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c + +# +#other~ +# +clean: .symbolic +# @$(REMOVECOMMAND) *.$(OBJ) + @$(REMOVECOMMAND) *.OBJ +# @$(REMOVECOMMAND) *.out +# @$(REMOVECOMMAND) *.OUT + @$(REMOVECOMMAND) makefi~1 + @$(REMOVECOMMAND) __WCL__.LNK +# @$(REMOVECOMMAND) *.smp + @$(REMOVECOMMAND) *.SMP diff --git a/makefile.gnu b/makefile.gnu index 1743f466..f86934a9 100644 --- a/makefile.gnu +++ b/makefile.gnu @@ -24,44 +24,44 @@ all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe m #executables # 16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib scroll.exe: scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) - wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) + wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ) scroll.$(OBJ): $(SRC)scroll.c - wcl $(FLAGS) -c $(SRC)scroll.c + wcl $(FLAGS) -c $(SRC)scroll.c test.exe: test.$(OBJ) 16.lib - wcl $(FLAGS) test.$(OBJ) 16.lib + wcl $(FLAGS) test.$(OBJ) 16.lib test2.exe: test2.$(OBJ) 16.lib - wcl $(FLAGS) test2.$(OBJ) 16.lib + wcl $(FLAGS) test2.$(OBJ) 16.lib fonttest.exe: fonttest.$(OBJ) 16.lib - wcl $(FLAGS) fonttest.$(OBJ) 16.lib + wcl $(FLAGS) fonttest.$(OBJ) 16.lib inputest.exe: inputest.$(OBJ) 16.lib - wcl $(FLAGS) inputest.$(OBJ) 16.lib + wcl $(FLAGS) inputest.$(OBJ) 16.lib pcxtest.exe: pcxtest.$(OBJ) 16.lib - wcl $(FLAGS) pcxtest.$(OBJ) 16.lib + wcl $(FLAGS) pcxtest.$(OBJ) 16.lib palettec.exe: palettec.$(OBJ) modex16.$(OBJ) - wcl $(FLAGS) palettec.$(OBJ) modex16.$(OBJ) + wcl $(FLAGS) palettec.$(OBJ) modex16.$(OBJ) maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib - wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib + wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib - wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib + wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib emmtest.exe: emmtest.$(OBJ) memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ) emsdump.exe: emsdump.$(OBJ) memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ) fmemtest.exe: fmemtest.$(OBJ)# memory.$(OBJ) - wcl $(FLAGS) $(MFLAGS) fmemtest.$(OBJ)# memory.$(OBJ) + wcl $(FLAGS) $(MFLAGS) fmemtest.$(OBJ)# memory.$(OBJ) exmmtest.exe: exmmtest.$(OBJ) 16_mm.$(OBJ) wcl $(FLAGS) $(MFLAGS) exmmtest.$(OBJ) 16_mm.$(OBJ) @@ -70,107 +70,107 @@ exmmtest.exe: exmmtest.$(OBJ) 16_mm.$(OBJ) #executable's objects # 16.$(OBJ): $(SRC)16.h $(SRC)16.c - wcl $(FLAGS) -c $(SRC)16.c + wcl $(FLAGS) -c $(SRC)16.c test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)test.c + wcl $(FLAGS) -c $(SRC)test.c test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)test2.c + wcl $(FLAGS) -c $(SRC)test2.c pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)pcxtest.c + wcl $(FLAGS) -c $(SRC)pcxtest.c palettec.$(OBJ): $(SRC)palettec.c - wcl $(FLAGS) -c $(SRC)palettec.c + wcl $(FLAGS) -c $(SRC)palettec.c maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h - wcl $(FLAGS) -c $(SRC)maptest.c + wcl $(FLAGS) -c $(SRC)maptest.c maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h - wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c emmtest.$(OBJ): $(SRC)emmtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c emsdump.$(OBJ): $(SRC)emsdump.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c fmemtest.$(OBJ): $(SRC)fmemtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)fmemtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)fmemtest.c fonttest.$(OBJ): $(SRC)fonttest.c - wcl -c $(SRC)fonttest.c + wcl -c $(SRC)fonttest.c inputest.$(OBJ): $(SRC)inputest.c - wcl $(FLAGS) -c $(SRC)inputest.c + wcl $(FLAGS) -c $(SRC)inputest.c exmmtest.$(OBJ): $(SRC)exmmtest.c - wcl $(FLAGS) $(MFLAGS) -c $(SRC)exmmtest.c + wcl $(FLAGS) $(MFLAGS) -c $(SRC)exmmtest.c # #non executable objects libraries # 16.lib: $(16LIBOBJS) gfx.lib - wlib -b 16.lib $(16LIBOBJS) gfx.lib + wlib -b 16.lib $(16LIBOBJS) gfx.lib gfx.lib: $(GFXLIBOBJS) - wlib -b gfx.lib $(GFXLIBOBJS) + wlib -b gfx.lib $(GFXLIBOBJS) modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c - wcl $(FLAGS) -c $(SRCLIB)modex16.c + wcl $(FLAGS) -c $(SRCLIB)modex16.c dos_kb.$(OBJ): $(SRCLIB)dos_kb.h $(SRCLIB)dos_kb.c - wcl $(FLAGS) -c $(SRCLIB)dos_kb.c + wcl $(FLAGS) -c $(SRCLIB)dos_kb.c bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c - wcl $(FLAGS) -c $(SRCLIB)bitmap.c + wcl $(FLAGS) -c $(SRCLIB)bitmap.c planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c - wcl $(FLAGS) -c $(SRCLIB)planar.c + wcl $(FLAGS) -c $(SRCLIB)planar.c scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c - wcl $(FLAGS) -c $(SRCLIB)scroll16.c + wcl $(FLAGS) -c $(SRCLIB)scroll16.c wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c - wcl $(FLAGS) -c $(WCPULIB)wcpu.c + wcl $(FLAGS) -c $(WCPULIB)wcpu.c 16text.$(OBJ): $(SRCLIB)16text.c - wcl -c $(SRCLIB)16text.c + wcl -c $(SRCLIB)16text.c mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16.lib - wcl $(FLAGS) -c $(SRCLIB)mapread.c 16.lib + wcl $(FLAGS) -c $(SRCLIB)mapread.c 16.lib fmapread.$(OBJ): $(SRCLIB)fmapread.h $(SRCLIB)fmapread.c 16.lib - wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c 16.lib + wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c 16.lib 16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c - wcl $(FLAGS) -c $(SRCLIB)16_in.c + wcl $(FLAGS) -c $(SRCLIB)16_in.c 16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c - wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)16_mm.c + wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)16_mm.c lib_head.$(OBJ): $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c - wcl $(FLAGS) -c $(SRCLIB)lib_head.c + wcl $(FLAGS) -c $(SRCLIB)lib_head.c jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c - wcl $(FLAGS) -c $(JSMNLIB)jsmn.c + wcl $(FLAGS) -c $(JSMNLIB)jsmn.c farjsmn.$(OBJ): $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c - wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c + wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c - wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c + wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c # #other~ # clean: .symbolic -# @$(REMOVECOMMAND) *.$(OBJ) - @$(REMOVECOMMAND) *.OBJ -# @$(REMOVECOMMAND) *.out -# @$(REMOVECOMMAND) *.OUT - @$(REMOVECOMMAND) makefi~1 - @$(REMOVECOMMAND) __WCL__.LNK -# @$(REMOVECOMMAND) *.smp - @$(REMOVECOMMAND) *.SMP +# @$(REMOVECOMMAND) *.$(OBJ) + @$(REMOVECOMMAND) *.OBJ +# @$(REMOVECOMMAND) *.out +# @$(REMOVECOMMAND) *.OUT + @$(REMOVECOMMAND) makefi~1 + @$(REMOVECOMMAND) __WCL__.LNK +# @$(REMOVECOMMAND) *.smp + @$(REMOVECOMMAND) *.SMP diff --git a/maptest.exe b/maptest.exe index a846d026..2a6a6dd5 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/maptest0.exe b/maptest0.exe index 815756c6..12dda10a 100644 Binary files a/maptest0.exe and b/maptest0.exe differ diff --git a/pcxtest.exe b/pcxtest.exe index 80badb00..57294369 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index 89e5c6b9..4180b96f 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index c3230f9b..88f690d1 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1036,6 +1036,7 @@ dword MM_UnusedMemory (void) } return free*16l; +// return free; } //========================================================================== @@ -1068,6 +1069,7 @@ dword MM_TotalFree (void) } return free*16l; +// return free; } //========================================================================== @@ -1093,6 +1095,9 @@ void MM_Report(void) printf("mainmem=%lu\n", mminfo.mainmem); printf("UnusedMemory=%lu\n", MM_UnusedMemory()); printf("TotalFree=%lu\n", MM_TotalFree()); + printf("\n"); + printf("UnusedMemory=%lu kb\n", MM_UnusedMemory()/10248); + printf("TotalFree=%lu kb\n", MM_TotalFree()/10248); } //========================================================================== diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 102c406c..f2b41c2c 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -79,8 +79,8 @@ #define XMS_FREEUMB 0x11 //========================================================================== - -typedef void /*__seg*/ * memptr; +__segment seg; +typedef void __based(seg) * memptr; typedef struct { diff --git a/test.exe b/test.exe index c5c68fdb..262cd022 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index 0b074538..c9f12fc1 100644 Binary files a/test2.exe and b/test2.exe differ