From: sparky4 Date: Fri, 12 Feb 2016 17:46:20 +0000 (-0600) Subject: assembly files ... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1488685a2c48db7f8db6dafdb2943d51f24d7ab2;p=plz.git assembly files ... --- diff --git a/asmyt.o b/asmyt.o new file mode 100755 index 0000000..cccfe42 Binary files /dev/null and b/asmyt.o differ diff --git a/makefile b/makefile new file mode 100755 index 0000000..f01a098 --- /dev/null +++ b/makefile @@ -0,0 +1,112 @@ +# +# Higanbana Project makefile +# +# +# Possible optimizations for 8088 class processors +# +# -oa Relax alias checking +# -ob Try to generate straight line code +# -oe - expand user functions inline (-oe=20 is default, adds lots of code) +# -oh Enable repeated optimizations +# -oi generate certain lib funcs inline +# -oi+ Set max inline depth (C++ only, use -oi for C) +# -ok Flowing of register save into function flow graph +# -ol loop optimizations +# -ol+ loop optimizations plus unrolling +# -or Reorder for pipelined (486+ procs); not sure if good to use +# -os Favor space over time +# -ot Favor time over space +# -ei Allocate an "int" for all enum types +# -zp2 Allow compiler to add padding to structs +# -zpw Use with above; make sure you are warning free! +# -0 8088/8086 class code generation +# -s disable stack overflow checking + +# -zk0u translate kanji to unicode... wwww +# -zk0 kanji support~ +# -zkl current codepage + +#%.C +#192x144 +#wwww will add these +!ifdef __LINUX__ +REMOVECOMMAND=rm -f +COPYCOMMAND=cp -f +DIRSEP=/ +OBJ=o +!else +REMOVECOMMAND=del +COPYCOMMAND=copy /y +DIRSEP=\ +OBJ=obj +!endif +#!ifndef INCLUDE +#IN=..$(DIRSEP)..$(DIRSEP)fdos$(DIRSEP)watcom2$(DIRSEP)h +#IFLAGS=-i=$(IN) +#!endif + +TARGET_OS = dos + +#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP) +SRC=src$(DIRSEP) +SRCLIB=$(SRC)lib$(DIRSEP) +JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) +NYANLIB=$(SRCLIB)nyan$(DIRSEP) +#EXMMLIB=$(SRCLIB)exmm$(DIRSEP) +MODEXLIB=$(SRCLIB)modex16$(DIRSEP) +MODEXLIB_=$(SRCLIB)modex$(DIRSEP) +VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP) +DOSLIB=$(SRCLIB)doslib$(DIRSEP) +WCPULIB=$(SRCLIB)wcpu$(DIRSEP) + +AFLAGS=-mh -0 -d1 +16FLAGS=-fh=16.hed +BAKAPIFLAGS=-fh=bakapi.hed +SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k55808#60000#32768 +DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS) +ZFLAGS=-zk0 -zq -zc -zp8# -zm +CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww +OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x +FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) + + +DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ) +VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ) +DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) +16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) timer.$(OBJ) +# +#3812intf.$(OBJ) +GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) + +TESTEXEC = exmmtest.exe test.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe planrpcx.exe +# tsthimem.exe +#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe +EXEC = plzpart.exe + +all: $(EXEC) + +# +#game and bakapi executables +# +16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib + wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=16.map + + +# +#executable's objects +# +16.$(OBJ): $(SRC)16.h $(SRC)16.c + wcl $(FLAGS) -c $(SRC)16.c + +# +#non executable objects libraries +# +16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib + wlib -b -q $(16LIBOBJS) $(16LIBOBJS)# doslib.lib vgmsnd.lib + +# +#other~ +# +clean: .symbolic + @$(REMOVECOMMAND) $(EXEC) + @$(REMOVECOMMAND) *.$(OBJ) diff --git a/plz.c b/plz.c index c909d80..4b1091e 100755 --- a/plz.c +++ b/plz.c @@ -74,11 +74,11 @@ void plz(){ cop_fadepal=pals[curpal++]; frame_count=0; - while(!dis_exit()) + while(!kbhit()) { tim+=frame_count; frame_count=0; count++; - if(dis_getmframe()>timetable[ttptr]) - { + //if(dis_getmframe()>timetable[ttptr]) + // { memset(fadepal,0,768); cop_drop=1; cop_fadepal=pals[curpal++]; @@ -91,7 +91,7 @@ void plz(){ ik2=inittable[ttptr][5]; ik3=inittable[ttptr][6]; ik4=inittable[ttptr][7]; - } + // } if(curpal==5 && cop_drop>64) break; __asm diff --git a/plz.err b/plz.err new file mode 100755 index 0000000..c5a16d9 --- /dev/null +++ b/plz.err @@ -0,0 +1,9 @@ +plz.c(74): Warning! W113: Pointer type mismatch +plz.c(74): Note! I2003: source conversion type is 'int *' +plz.c(74): Note! I2004: target conversion type is 'char __far *' +plz.c(84): Warning! W113: Pointer type mismatch +plz.c(84): Note! I2003: source conversion type is 'int *' +plz.c(84): Note! I2004: target conversion type is 'char __far *' +plz.c(126): Warning! W111: Meaningless use of an expression +plz.c(182): Warning! W131: No prototype found for function 'tw_opengraph2' +plz.c(186): Warning! W131: No prototype found for function 'tw_setrgbpalette' diff --git a/plz.h b/plz.h index a4ba084..2e992b4 100755 --- a/plz.h +++ b/plz.h @@ -1,5 +1,6 @@ #ifndef _PLZ_H_ #define _PLZ_H_ +#include void init_plz(); void plz(); #endif diff --git a/plz.o b/plz.o index 4a36685..9de156e 100755 Binary files a/plz.o and b/plz.o differ diff --git a/plzpart.o b/plzpart.o index 39447bf..d9ad96e 100755 Binary files a/plzpart.o and b/plzpart.o differ