From: sparky4 Date: Mon, 8 Aug 2016 14:15:02 +0000 (-0500) Subject: ==== IT COMPILES WWWWWW == X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=0bf773356324d59557499f3b22a8068d2713f084;p=plz.git ==== IT COMPILES WWWWWW == --- diff --git a/asmyt.obj b/asmyt.obj deleted file mode 100755 index cccfe42..0000000 Binary files a/asmyt.obj and /dev/null differ diff --git a/copper.asm b/copper.asm index 77e5c50..db5567a 100755 --- a/copper.asm +++ b/copper.asm @@ -7,7 +7,7 @@ EXTRN C il1:word, C il2:word, C il3:word, C il4:word, C ik1:word, C ik2:word, C CODESEG -PUBLIC C frame_count, C init_copper, C close_copper, C cop_drop, C cop_pal, C do_pal +PUBLIC C frame_count, C init_copper_, C close_copper_, C cop_drop, C cop_pal, C do_pal PUBLIC C cop_scrl, C cop_start, C cop_plz frame_count dw 0 @@ -18,7 +18,7 @@ cop_start dw 0 cop_scrl dw 0 cop_plz dw 1 -PROC close_copper +PROC close_copper_ mov bx, 7 mov ax, 0 @@ -41,7 +41,7 @@ PROC close_copper ret ENDP -PROC init_copper +PROC init_copper_ mov bx, 7 mov ax, 1 diff --git a/copper.lib b/copper.lib deleted file mode 100755 index 44efc74..0000000 Binary files a/copper.lib and /dev/null differ diff --git a/copper.o b/copper.o index 89305e7..25131b6 100755 Binary files a/copper.o and b/copper.o differ diff --git a/copper.obj b/copper.obj deleted file mode 100755 index 65d6c46..0000000 Binary files a/copper.obj and /dev/null differ diff --git a/makefile b/makefile index da8e4bc..b81c619 100755 --- a/makefile +++ b/makefile @@ -61,7 +61,7 @@ OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) EXEC = plzpart.exe -OBJS = copper.lib tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ) +OBJS = tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ) copper.$(OBJ) all: $(EXEC) @@ -71,6 +71,12 @@ all: $(EXEC) plzpart.exe: plzpart.$(OBJ) $(OBJS) wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map +# NTS we have to construct the command line into tmp.cmd because for MS-DOS +# systems all arguments would exceed the pitiful 128 char command line limit +#.C.OBJ: +# %write temp.cmd $(CFLAGS_THIS) $(CFLAGS_CON) $[@ +# wcl @temp.cmd + # #executable's objects # @@ -80,18 +86,16 @@ plzpart.$(OBJ): plzpart.h plzpart.c # #non executable objects libraries # -plz.$(OBJ): plz.h plz.c copper.lib - wcl $(FLAGS) -c plz.c copper.lib +plz.$(OBJ): plz.h plz.c + wcl $(FLAGS) -c plz.c tweak.$(OBJ): tweak.h tweak.c wcl $(FLAGS) -c tweak.c asmyt.$(OBJ): asmyt.h asmyt.c wcl $(FLAGS) -c asmyt.c -copper.lib: copper.$(OBJ) - wlib -b copper.lib copper.$(OBJ) -copper.$(OBJ): copper.h copper.c copper.ass -# wcl $(AFLAGS) -zcm=tasm -c copper.asm +copper.$(OBJ): copper.h copper.asm#copper.c + wasm $(AFLAGS) -zcm=tasm -c copper.asm # wasm $(AFLAGS) -c copper.ass - wcl $(FLAGS) -c copper.c +# wcl $(FLAGS) -c copper.c #tasm compiled... # copper.$(OBJ): copper.h copper.asm @@ -105,8 +109,8 @@ copper.$(OBJ): copper.h copper.c copper.ass #other~ # clean: .symbolic - @$(REMOVECOMMAND) copper.lib - @wlib -n copper.lib + #@$(REMOVECOMMAND) copper.lib + #@wlib -n copper.lib @$(REMOVECOMMAND) $(EXEC) # @$(REMOVECOMMAND) *.$(OBJ) @$(REMOVECOMMAND) *.o diff --git a/plz.c b/plz.c index 4ed8fcf..f0f9750 100755 --- a/plz.c +++ b/plz.c @@ -18,7 +18,7 @@ // extern int init_copper(); // extern int close_copper(); //extern int far frame_count; -int frame_count; +extern int frame_count; extern int far cop_drop; extern int far cop_plz; extern int far cop_start; diff --git a/plz.err b/plz.err deleted file mode 100755 index 6cf43e3..0000000 --- a/plz.err +++ /dev/null @@ -1 +0,0 @@ -ptau.inc(10): Warning! W138: No newline at end of file diff --git a/plz.lib b/plz.lib deleted file mode 100755 index c3bf345..0000000 Binary files a/plz.lib and /dev/null differ diff --git a/plz.o b/plz.o index 812d85e..5554554 100755 Binary files a/plz.o and b/plz.o differ diff --git a/plzpart.exe b/plzpart.exe new file mode 100755 index 0000000..7073913 Binary files /dev/null and b/plzpart.exe differ diff --git a/plzpart.map b/plzpart.map index da626a7..3efd860 100755 --- a/plzpart.map +++ b/plzpart.map @@ -1,11 +1,9 @@ Open Watcom Linker Version 2.0 beta Feb 1 2016 01:01:49 (32-bit) Copyright (c) 2002-2016 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 16/08/08 08:15:52 +Created on: 16/08/08 09:14:49 Executable Image: plzpart.exe creating a DOS executable -Error! E2028: init_copper_ is an undefined reference -Error! E2028: close_copper_ is an undefined reference +------------+ @@ -15,7 +13,7 @@ Error! E2028: close_copper_ is an undefined reference Group Address Size ===== ======= ==== -DGROUP 0117:0000 0000adf0 +DGROUP 01b0:0000 0000aa50 @@ -30,25 +28,24 @@ plzpart_TEXT CODE AUTO 0000:0000 00000020 tweak_TEXT CODE AUTO 0000:0020 0000006d plz_TEXT CODE AUTO 0000:0090 00000a26 asmyt_TEXT CODE AUTO 0000:0ac0 000001ef -_TEXT CODE AUTO 0000:0cb0 000004ae -copper_TEXT CODE AUTO 0000:1160 00000000 -FAR_DATA FAR_DATA AUTO 0116:0000 00000000 -copper13_DATA FAR_DATA AUTO 0116:0000 00000006 -_NULL BEGDATA DGROUP 0117:0000 00000020 -_AFTERNULL BEGDATA DGROUP 0119:0000 00000002 -CONST DATA DGROUP 0119:0002 00000000 -CONST2 DATA DGROUP 0119:0002 00000000 -_DATA DATA DGROUP 011a:0000 000002c4 -XIB DATA DGROUP 0146:0004 00000000 -XI DATA DGROUP 0146:0004 00000006 -XIE DATA DGROUP 0146:000a 00000000 -YIB DATA DGROUP 0146:000a 00000000 -YI DATA DGROUP 0146:000a 00000000 -YIE DATA DGROUP 0146:000a 00000000 -STRINGS DATA DGROUP 0146:000a 00000000 -DATA DATA DGROUP 0146:000a 00000000 -_BSS BSS DGROUP 0147:0000 00002ae2 -STACK STACK DGROUP 03f6:0000 00008000 +copper_TEXT CODE AUTO 0000:0cb0 0000099b +_TEXT CODE AUTO 0000:164c 000004ae +FAR_DATA FAR_DATA AUTO 01af:000a 00000000 +_NULL BEGDATA DGROUP 01b0:0000 00000020 +_AFTERNULL BEGDATA DGROUP 01b2:0000 00000002 +CONST DATA DGROUP 01b2:0002 00000000 +CONST2 DATA DGROUP 01b2:0002 00000000 +_DATA DATA DGROUP 01b3:0000 000002c4 +XIB DATA DGROUP 01df:0004 00000000 +XI DATA DGROUP 01df:0004 00000006 +XIE DATA DGROUP 01df:000a 00000000 +YIB DATA DGROUP 01df:000a 00000000 +YI DATA DGROUP 01df:000a 00000000 +YIE DATA DGROUP 01df:000a 00000000 +STRINGS DATA DGROUP 01df:000a 00000000 +DATA DATA DGROUP 01df:000a 00000000 +_BSS BSS DGROUP 01df:000a 0000274e +STACK STACK DGROUP 0455:0000 00008000 +----------------+ @@ -69,132 +66,136 @@ Module: tweak.o(/dos/z/plz/tweak.c) Module: plz.o(/dos/z/plz/plz.c) 0000:0090 plz_ 0000:0352+ init_plz_ -0117:0030* _vmem -0117:0034+ _ptau -0117:0134+ _curpal -0117:0136* _timetable -0117:014a+ _ttptr -0117:014c+ _l1 -0117:014e+ _l2 -0117:0150+ _l3 -0117:0152+ _l4 -0117:0154+ _k1 -0117:0156+ _k2 -0117:0158+ _k3 -0117:015a+ _k4 -0117:015c+ _il1 -0117:015e+ _il2 -0117:0160+ _il3 -0117:0162+ _il4 -0117:0164+ _ik1 -0117:0166+ _ik2 -0117:0168+ _ik3 -0117:016a+ _ik4 -0117:016c+ _inittable -0117:0300+ _pals -0117:2700+ _frame_count +01b0:0030* _vmem +01b0:0034+ _ptau +01b0:0134+ _curpal +01b0:0136* _timetable +01b0:014a+ _ttptr +01b0:014c _l1 +01b0:014e _l2 +01b0:0150 _l3 +01b0:0152 _l4 +01b0:0154 _k1 +01b0:0156 _k2 +01b0:0158 _k3 +01b0:015a _k4 +01b0:015c _il1 +01b0:015e _il2 +01b0:0160 _il3 +01b0:0162 _il4 +01b0:0164 _ik1 +01b0:0166 _ik2 +01b0:0168 _ik3 +01b0:016a _ik4 +01b0:016c+ _inittable +01b0:02fa+ _pals Module: asmyt.o(/dos/z/plz/asmyt.c) 0000:0ac0 plzline_ 0000:0b3a setplzparas_ 0000:0c6e set_plzstart_ +Module: copper.o(/dos/z/plz/copper.asm) +0000:0cb0 _frame_count +0000:0ceb init_copper_ +0000:0cc0 close_copper_ +0000:0cb2 _cop_drop +0000:0cb4* _cop_pal +0000:0cb8* _do_pal +0000:0cbc* _cop_scrl +0000:0cba _cop_start +0000:0cbe _cop_plz +0000:0d8b* pompota +0000:0db9* moveplz +0000:0e97 _fadepal +0000:1497 _cop_fadepal Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(stk086.asm) -0000:0cb5 __STK -0000:0cd5* __STKOVERFLOW_ +0000:1651 __STK +0000:1671* __STKOVERFLOW_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cstart) -0117:0000* __nullarea -0117:02b6* __ovlflag -0117:02b7* __intno -0117:02b8* __ovlvec -0000:0cf2 _cstart_ -0000:0dc5* _Not_Enough_Memory_ -0000:0ef7 __exit_ -0000:0f14 __do_exit_with_msg__ -0000:0f6d __GETDS +01b0:0000* __nullarea +01b0:02b6* __ovlflag +01b0:02b7* __intno +01b0:02b8* __ovlvec +0000:168e _cstart_ +0000:1761* _Not_Enough_Memory_ +0000:1893 __exit_ +0000:18b0 __do_exit_with_msg__ +0000:1909 __GETDS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmodel.asm) -0000:0f78 _big_code_ -0000:0f78* CodeModelMismatch -Module: copper.lib(/dos/z/plz/copper.c) -0117:2a50 _fadepal -0117:2d50 _cop_fadepal -0117:2dd8* _cop_pal -0116:0000 _cop_plz -0116:0002 _cop_drop -0116:0004 _cop_start +0000:1914 _big_code_ +0000:1914* CodeModelMismatch Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(i4m.asm) -0000:0f78 __I4M -0000:0f78* __U4M +0000:1914 __I4M +0000:1914* __U4M Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(pia.asm) -0000:0f97 __PIA -0000:0f90* __PIS +0000:1933 __PIA +0000:192c* __PIS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(kbhit.c) -0000:0fae kbhit_ +0000:194a kbhit_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(xmsg.c) -0000:0fc5* __exit_with_msg_ -0000:0fca __fatal_runtime_error_ +0000:1961* __exit_with_msg_ +0000:1966 __fatal_runtime_error_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(crwdata) -0117:02bc __curbrk -0117:02c4 __STACKLOW -0117:02c6 __STACKTOP -0117:02c8 __cbyte -0117:02ca __child -0117:02cc __no87 -0117:02d9 ___FPE_handler -0117:02be __psp -0117:02cd __get_ovl_stack -0117:02d1 __restore_ovl_stack -0117:02d5 __close_ovl_file -0117:02dd __LpCmdLine -0117:02e1 __LpPgmName -0117:02c0 __osmajor -0117:02c1 __osminor -0117:02c2 __osmode -0117:02c3 __HShift +01b0:02bc __curbrk +01b0:02c4 __STACKLOW +01b0:02c6 __STACKTOP +01b0:02c8 __cbyte +01b0:02ca __child +01b0:02cc __no87 +01b0:02d9 ___FPE_handler +01b0:02be __psp +01b0:02cd __get_ovl_stack +01b0:02d1 __restore_ovl_stack +01b0:02d5 __close_ovl_file +01b0:02dd __LpCmdLine +01b0:02e1 __LpPgmName +01b0:02c0 __osmajor +01b0:02c1 __osminor +01b0:02c2 __osmode +01b0:02c3 __HShift Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmain086.c) -0000:0fe4 __CMain +0000:1980 __CMain Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(initrtns.c) -0000:1045 __InitRtns -0000:1045* __FInitRtns -0000:10a0 __FiniRtns -0000:10a0* __FFiniRtns +0000:19e1 __InitRtns +0000:19e1* __FInitRtns +0000:1a3c __FiniRtns +0000:1a3c* __FFiniRtns Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(uselfn.c) -0117:02e6 ___uselfn +01b0:02e6 ___uselfn Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(dosseg) -0000:1104 __DOSseg__ +0000:1aa0 __DOSseg__ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(enterdb.c) -0000:1105 __EnterWVIDEO_ -0117:02e8+ ___WD_Present +0000:1aa1 __EnterWVIDEO_ +01b0:02e8+ ___WD_Present Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(___argc.c) -0117:2ddc ____Argv -0117:2de0 ____Argc +01b0:2a42 ____Argv +01b0:2a46 ____Argc Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(amblksiz.c) -0117:02ea __amblksiz +01b0:02ea __amblksiz Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(exit.c) -0000:1129+ __null_int23_exit_ -0000:112a exit_ -0000:1142* _exit_ -0117:02ec+ ___int23_exit -0117:02f0+ ___FPE_handler_exit +0000:1ac5+ __null_int23_exit_ +0000:1ac6 exit_ +0000:1ade* _exit_ +01b0:02ec+ ___int23_exit +01b0:02f0+ ___FPE_handler_exit Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(sgdef086) -0117:02f4 __Start_XI -0117:02fa __End_XI -0117:02fa __Start_YI -0117:02fa __End_YI - - - +---------------------------+ - | Unresolved References | - +---------------------------+ - -Undefined Symbol Referenced by -================ ============= - -init_copper_ plzpart.o(/dos/z/plz/plzpart.c) -close_copper_ plzpart.o(/dos/z/plz/plzpart.c) +01b0:02f4 __Start_XI +01b0:02fa __End_XI +01b0:02fa __Start_YI +01b0:02fa __End_YI +--------------------+ | Libraries Used | +--------------------+ -copper.lib /dos/fdos/watcom2/lib286/dos/clibh.lib + + + +-----------------------+ + | Linker Statistics | + +-----------------------+ + +Stack size: 8000 (32768.) +Memory size: c550 (50512.) +Entry point address: 0000:168e +Link time: 00:00.00 diff --git a/plzpart.o b/plzpart.o index bd6a698..45117d0 100755 Binary files a/plzpart.o and b/plzpart.o differ diff --git a/ptau.inc b/ptau.inc index b499506..daf5b1d 100755 --- a/ptau.inc +++ b/ptau.inc @@ -7,4 +7,4 @@ , 52, 51, 50, 49, 47, 46, 45, 43, 42, 40, 39, 38, 36, 35, 33, 32 , 30, 28, 27, 25, 24, 23, 21, 20, 18, 17, 16, 14, 13, 12, 11, 10 , 9, 8, 7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1 -}; \ No newline at end of file +}; diff --git a/tweak.obj b/tweak.obj deleted file mode 100755 index 467aca9..0000000 Binary files a/tweak.obj and /dev/null differ