]> 4ch.mooo.com Git - plz.git/commitdiff
==== IT COMPILES WWWWWW ==
authorsparky4 <sparky4@cock.li>
Mon, 8 Aug 2016 14:15:02 +0000 (09:15 -0500)
committersparky4 <sparky4@cock.li>
Mon, 8 Aug 2016 14:15:02 +0000 (09:15 -0500)
15 files changed:
asmyt.obj [deleted file]
copper.asm
copper.lib [deleted file]
copper.o
copper.obj [deleted file]
makefile
plz.c
plz.err [deleted file]
plz.lib [deleted file]
plz.o
plzpart.exe [new file with mode: 0755]
plzpart.map
plzpart.o
ptau.inc
tweak.obj [deleted file]

diff --git a/asmyt.obj b/asmyt.obj
deleted file mode 100755 (executable)
index cccfe42..0000000
Binary files a/asmyt.obj and /dev/null differ
index 77e5c5024ea3f84910670ee7c674d5f961a28f08..db5567ad2fc7a6080026ce35d77ab958121c5c97 100755 (executable)
@@ -7,7 +7,7 @@ EXTRN C il1:word, C il2:word, C il3:word, C il4:word, C ik1:word, C ik2:word, C
 \r
 CODESEG\r
 \r
-PUBLIC  C frame_count, C init_copper, C close_copper, C cop_drop, C cop_pal, C do_pal\r
+PUBLIC C frame_count, C init_copper_, C close_copper_, C cop_drop, C cop_pal, C do_pal\r
 PUBLIC C cop_scrl, C cop_start, C cop_plz\r
 \r
 frame_count    dw       0\r
@@ -18,7 +18,7 @@ cop_start     dw      0
 cop_scrl       dw      0\r
 cop_plz                dw      1\r
 \r
-PROC   close_copper\r
+PROC   close_copper_\r
 \r
        mov     bx, 7\r
        mov     ax, 0\r
@@ -41,7 +41,7 @@ PROC  close_copper
        ret\r
 ENDP\r
 \r
-PROC   init_copper\r
+PROC   init_copper_\r
 \r
        mov     bx, 7\r
        mov     ax, 1\r
diff --git a/copper.lib b/copper.lib
deleted file mode 100755 (executable)
index 44efc74..0000000
Binary files a/copper.lib and /dev/null differ
index 89305e77d6d93d695db40676b752a7860739879a..25131b6bc9f82a283a6c9a66778355a56d81d1b4 100755 (executable)
Binary files a/copper.o and b/copper.o differ
diff --git a/copper.obj b/copper.obj
deleted file mode 100755 (executable)
index 65d6c46..0000000
Binary files a/copper.obj and /dev/null differ
index da8e4bc6866c5b7d7f9f3e7db1cd181f0b8b2ffd..b81c6197f5df7755093cff4ef7dfedaa81eff59f 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -61,7 +61,7 @@ OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87  -onac -ol+ -ok####x
 FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)\r
 \r
 EXEC = plzpart.exe\r
-OBJS = copper.lib tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ)\r
+OBJS = tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ) copper.$(OBJ)\r
 \r
 all: $(EXEC)\r
 \r
@@ -71,6 +71,12 @@ all: $(EXEC)
 plzpart.exe: plzpart.$(OBJ) $(OBJS)\r
        wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map\r
 \r
+# NTS we have to construct the command line into tmp.cmd because for MS-DOS\r
+# systems all arguments would exceed the pitiful 128 char command line limit\r
+#.C.OBJ:\r
+#      %write temp.cmd $(CFLAGS_THIS) $(CFLAGS_CON) $[@\r
+#      wcl @temp.cmd\r
+\r
 #\r
 #executable's objects\r
 #\r
@@ -80,18 +86,16 @@ plzpart.$(OBJ): plzpart.h plzpart.c
 #\r
 #non executable objects libraries\r
 #\r
-plz.$(OBJ): plz.h plz.c copper.lib\r
-       wcl $(FLAGS) -c plz.c copper.lib\r
+plz.$(OBJ): plz.h plz.c\r
+       wcl $(FLAGS) -c plz.c\r
 tweak.$(OBJ): tweak.h tweak.c\r
        wcl $(FLAGS) -c tweak.c\r
 asmyt.$(OBJ): asmyt.h asmyt.c\r
        wcl $(FLAGS) -c asmyt.c\r
-copper.lib: copper.$(OBJ)\r
-       wlib -b copper.lib copper.$(OBJ)\r
-copper.$(OBJ): copper.h copper.c copper.ass\r
-#      wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
+copper.$(OBJ): copper.h copper.asm#copper.c\r
+       wasm $(AFLAGS) -zcm=tasm -c copper.asm\r
 #      wasm $(AFLAGS) -c copper.ass\r
-       wcl $(FLAGS) -c copper.c\r
+#      wcl $(FLAGS) -c copper.c\r
 \r
 #tasm compiled...\r
 # copper.$(OBJ): copper.h copper.asm\r
@@ -105,8 +109,8 @@ copper.$(OBJ): copper.h copper.c copper.ass
 #other~\r
 #\r
 clean: .symbolic\r
-       @$(REMOVECOMMAND) copper.lib\r
-       @wlib -n copper.lib\r
+       #@$(REMOVECOMMAND) copper.lib\r
+       #@wlib -n copper.lib\r
        @$(REMOVECOMMAND) $(EXEC)\r
 #      @$(REMOVECOMMAND) *.$(OBJ)\r
        @$(REMOVECOMMAND) *.o\r
diff --git a/plz.c b/plz.c
index 4ed8fcf3d6425806c470a2c374091607a40db810..f0f975019fc34b6ff19162104cf997b1b1adf36c 100755 (executable)
--- a/plz.c
+++ b/plz.c
@@ -18,7 +18,7 @@
 // extern int init_copper();\r
 // extern int close_copper();\r
 //extern int far frame_count;\r
-int frame_count;\r
+extern int frame_count;\r
 extern int far cop_drop;\r
 extern int far cop_plz;\r
 extern int far cop_start;\r
diff --git a/plz.err b/plz.err
deleted file mode 100755 (executable)
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 (executable)
index c3bf345..0000000
Binary files a/plz.lib and /dev/null differ
diff --git a/plz.o b/plz.o
index 812d85e77c6c1aec22894bc805469f23b480dc01..5554554a867a3ed3a38e38d6f1ca2fdb05d79c02 100755 (executable)
Binary files a/plz.o and b/plz.o differ
diff --git a/plzpart.exe b/plzpart.exe
new file mode 100755 (executable)
index 0000000..7073913
Binary files /dev/null and b/plzpart.exe differ
index da626a73dc2e8e61166de00739f5a1e6803a2117..3efd8608fa0dd9f8bad6ddd2a590f50996ff4008 100755 (executable)
@@ -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
index bd6a698d25fe28a0cfe7b89c600c994f685d4ae8..45117d02ccf26216fc18cea3f786b3bbb0778459 100755 (executable)
Binary files a/plzpart.o and b/plzpart.o differ
index b49950628c6d4c32c9ab147d7e84cee984cae597..daf5b1d7d6d14c91112a453ef690bdf078731ad8 100755 (executable)
--- 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 (executable)
index 467aca9..0000000
Binary files a/tweak.obj and /dev/null differ