]> 4ch.mooo.com Git - plz.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Mon, 15 Feb 2016 17:08:52 +0000 (11:08 -0600)
committersparky4 <sparky4@cock.li>
Mon, 15 Feb 2016 17:08:52 +0000 (11:08 -0600)
asmyt.o [new file with mode: 0755]
makefile
plz.c
plz.err
plz.h
plz.o [new file with mode: 0755]
plzpart.map
tweak.c
tweak.h
tweak.o

diff --git a/asmyt.o b/asmyt.o
new file mode 100755 (executable)
index 0000000..cccfe42
Binary files /dev/null and b/asmyt.o differ
index 6f3b8206717ded0df7437e9687fb21bd28682ad2..a9adedd53b22478250699174c1b6c75134a8fbe8 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -65,13 +65,13 @@ EXEC = plzpart.exe
 \r
 all: $(EXEC)\r
 \r
-#copper.$(OBJ) tweak.$(OBJ) asmyt.$(OBJ)\r
+#asmyt.$(OBJ)\r
 \r
 #\r
 #game and bakapi executables\r
 #\r
-plzpart.exe: plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) asmyt.$(OBJ) plz.$(OBJ)\r
-       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) asmyt.$(OBJ) plz.$(OBJ) -fm=plzpart.map\r
+plzpart.exe: plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ)\r
+       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) -fm=plzpart.map\r
 \r
 \r
 #\r
@@ -92,8 +92,8 @@ copper.$(OBJ): copper.h copper.asm
        wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
 # tweak.$(OBJ): tweak.h tweak.asm\r
 #      wcl $(AFLAGS) -zcm=tasm -c tweak.asm\r
-asmyt.$(OBJ): asmyt.h asmyt.asm\r
-       wcl $(AFLAGS) -zcm=tasm -c asmyt.asm\r
+#asmyt.$(OBJ): asmyt.h asmyt.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c asmyt.asm\r
 \r
 #\r
 #other~\r
diff --git a/plz.c b/plz.c
index 4b1091eba65aabd4b28ef14cc17da3542ff509b4..b25327e6420de2002e8c9834bb6888ecf320b1e4 100755 (executable)
--- a/plz.c
+++ b/plz.c
@@ -123,7 +123,7 @@ void plz(){
                for(y=0;y<MAXY;y+=2)\r
                        plzline(y,0x0a000+y*6+YADD*6);\r
                }\r
-       cop_drop=0; frame_count=0; while(frame_count==0);\r
+       cop_drop=0; frame_count=0; //while(frame_count==0);\r
        set_plzstart(500);\r
        cop_plz=0;\r
        }\r
diff --git a/plz.err b/plz.err
index 2714aec1fd1c951083ac0fa6a333e562d49a7a3d..2180aa2ee11830e8043f60411f10b52c7f434edf 100755 (executable)
--- a/plz.err
+++ b/plz.err
@@ -4,4 +4,3 @@ 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
diff --git a/plz.h b/plz.h
index 8f6c9832078438662dfe7098ed8f9b3652d27d59..339343b413c1fc048f3b1d9252edcd0a72b54838 100755 (executable)
--- a/plz.h
+++ b/plz.h
@@ -6,9 +6,9 @@
 #include "tweak.h"\r
 extern setplzparas();\r
 extern int plzline();\r
-extern void tw_opengraph2();\r
+// extern void tw_opengraph2();\r
 extern int set_plzstart();\r
-extern void tw_setrgbpalette();\r
+// extern void tw_setrgbpalette();\r
 \r
 void init_plz();\r
 void plz();\r
diff --git a/plz.o b/plz.o
new file mode 100755 (executable)
index 0000000..2ede624
Binary files /dev/null and b/plz.o differ
index 469de1099b31e7f779d88960a0a5302682a8890e..691b8599bf9adfffb033323e63aa512a281f24b3 100755 (executable)
@@ -1,16 +1,14 @@
-Open Watcom Linker Version 2.0 beta Jan 20 2016 10:21:07 (32-bit)
-Copyright (c) 2002-2016 The Open Watcom Contributors. All Rights Reserved.
+Open Watcom Linker Version 2.0 beta Jan 16 2016 17:32:38 (64-bit)
+Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved.
 Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
-Created on:       16/02/13 19:16:31
+Created on:       16/02/15 11:08:20
 Executable Image: plzpart.exe
 creating a DOS executable
 Error! E2028: init_copper_ is an undefined reference
 Error! E2028: close_copper_ is an undefined reference
+Error! E2028: set_plzstart_ is an undefined reference
 Error! E2028: setplzparas_ is an undefined reference
 Error! E2028: plzline_ is an undefined reference
-Error! E2028: tw_opengraph2_ is an undefined reference
-Error! E2028: set_plzstart_ is an undefined reference
-Error! E2028: tw_setrgbpalette_ is an undefined reference
 
 
                         +------------+
@@ -20,7 +18,7 @@ Error! E2028: tw_setrgbpalette_ is an undefined reference
 Group                           Address              Size
 =====                           =======              ====
 
-DGROUP                          0188:0000            0000a650
+DGROUP                          0196:0000            0000a650
 
 
 
@@ -32,25 +30,26 @@ Segment                Class          Group          Address         Size
 =======                =====          =====          =======         ====
 
 plzpart_TEXT           CODE           AUTO           0000:0000       00000020
-plz_TEXT               CODE           AUTO           0000:0020       00000a0a
-_TEXT                  CODE           AUTO           0000:0a2a       000004c8
-COPPER_TEXT            CODE           AUTO           0000:0ef2       0000098a
-FAR_DATA               FAR_DATA       AUTO           0187:000c       00000000
-_NULL                  BEGDATA        DGROUP         0188:0000       00000020
-_AFTERNULL             BEGDATA        DGROUP         018a:0000       00000002
-CONST                  DATA           DGROUP         018a:0002       00000000
-CONST2                 DATA           DGROUP         018a:0002       00000000
-_DATA                  DATA           DGROUP         018a:0002       00000218
-XIB                    DATA           DGROUP         01ab:000a       00000000
-XI                     DATA           DGROUP         01ab:000a       00000006
-XIE                    DATA           DGROUP         01ac:0000       00000000
-YIB                    DATA           DGROUP         01ac:0000       00000000
-YI                     DATA           DGROUP         01ac:0000       00000000
-YIE                    DATA           DGROUP         01ac:0000       00000000
-STRINGS                DATA           DGROUP         01ac:0000       00000000
-DATA                   DATA           DGROUP         01ac:0000       00000000
-_BSS                   BSS            DGROUP         01ac:0000       00002406
-STACK                  STACK          DGROUP         03ed:0000       00008000
+copper_TEXT            CODE           AUTO           0000:0020       00000997
+tweak_TEXT             CODE           AUTO           0000:09c0       00000088
+plz_TEXT               CODE           AUTO           0000:0a50       00000a30
+_TEXT                  CODE           AUTO           0000:1480       000004d2
+FAR_DATA               FAR_DATA       AUTO           0195:0002       00000000
+_NULL                  BEGDATA        DGROUP         0196:0000       00000020
+_AFTERNULL             BEGDATA        DGROUP         0198:0000       00000002
+CONST                  DATA           DGROUP         0198:0002       00000000
+CONST2                 DATA           DGROUP         0198:0002       00000000
+_DATA                  DATA           DGROUP         0198:0002       00000218
+XIB                    DATA           DGROUP         01b9:000a       00000000
+XI                     DATA           DGROUP         01b9:000a       00000006
+XIE                    DATA           DGROUP         01ba:0000       00000000
+YIB                    DATA           DGROUP         01ba:0000       00000000
+YI                     DATA           DGROUP         01ba:0000       00000000
+YIE                    DATA           DGROUP         01ba:0000       00000000
+STRINGS                DATA           DGROUP         01ba:0000       00000000
+DATA                   DATA           DGROUP         01ba:0000       00000000
+_BSS                   BSS            DGROUP         01ba:0000       00002406
+STACK                  STACK          DGROUP         03fb:0000       00008000
 
 
                         +----------------+
@@ -65,121 +64,126 @@ Address        Symbol
 
 Module: plzpart.o(/dos/z/plz/plzpart.c)
 0000:0000      main_
+Module: copper.o(/dos/z/plz/copper.asm)
+0000:0020      _frame_count
+0000:0022      _cop_drop
+0000:0024*     _cop_pal
+0000:0028*     _do_pal
+0000:002a      _cop_start
+0000:002c*     _cop_scrl
+0000:002e      _cop_plz
+0000:0030*     _close_copper
+0000:005b*     _init_copper
+0000:00fb*     _pompota
+0000:0129*     _moveplz
+0000:0203      _fadepal
+0000:0803      _cop_fadepal
+Module: tweak.o(/dos/z/plz/tweak.c)
+0000:09c0      tw_opengraph2_
+0000:0a08      tw_setrgbpalette_
 Module: plz.o(/dos/z/plz/plz.c)
-0000:0020      plz_
-0000:02bc+     init_plz_
-0188:0022+     _ptau
-0188:0122+     _curpal
-0188:0124*     _timetable
-0188:0138+     _ttptr
-0188:013a      _l1
-0188:013c      _l2
-0188:013e      _l3
-0188:0140      _l4
-0188:0142      _k1
-0188:0144      _k2
-0188:0146      _k3
-0188:0148      _k4
-0188:014a      _il1
-0188:014c      _il2
-0188:014e      _il3
-0188:0150      _il4
-0188:0152      _ik1
-0188:0154      _ik2
-0188:0156      _ik3
-0188:0158      _ik4
-0188:015a+     _inittable
-0188:0240+     _pals
+0000:0a50      plz_
+0000:0d18+     init_plz_
+0196:0022+     _ptau
+0196:0122+     _curpal
+0196:0124*     _timetable
+0196:0138+     _ttptr
+0196:013a      _l1
+0196:013c      _l2
+0196:013e      _l3
+0196:0140      _l4
+0196:0142      _k1
+0196:0144      _k2
+0196:0146      _k3
+0196:0148      _k4
+0196:014a      _il1
+0196:014c      _il2
+0196:014e      _il3
+0196:0150      _il4
+0196:0152      _ik1
+0196:0154      _ik2
+0196:0156      _ik3
+0196:0158      _ik4
+0196:015a+     _inittable
+0196:0240+     _pals
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(stk086.asm)
-0000:0a2f      __STK
-0000:0a4f*     __STKOVERFLOW_
+0000:1485      __STK
+0000:14a5*     __STKOVERFLOW_
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cstart)
-0188:0000*     __nullarea
-0188:01fc*     __ovlflag
-0188:01fd*     __intno
-0188:01fe*     __ovlvec
-0000:0a6c      _cstart_
-0000:0b3f*     _Not_Enough_Memory_
-0000:0c71      __exit_
-0000:0c90      __do_exit_with_msg__
-0000:0ced      __GETDS
+0196:0000*     __nullarea
+0196:01fc*     __ovlflag
+0196:01fd*     __intno
+0196:01fe*     __ovlvec
+0000:14c2      _cstart_
+0000:1595*     _Not_Enough_Memory_
+0000:16c7      __exit_
+0000:16e6      __do_exit_with_msg__
+0000:1743      __GETDS
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmodel.asm)
-0000:0cf8      _big_code_
-0000:0cf8*     CodeModelMismatch
-Module: plz.lib(COPPER)
-0000:0ef2      _frame_count
-0000:0f2d*     _init_copper
-0000:0f02*     _close_copper
-0000:0ef4      _cop_drop
-0000:0ef6*     _cop_pal
-0000:0efa*     _do_pal
-0000:0efe*     _cop_scrl
-0000:0efc      _cop_start
-0000:0f00*     _cop_plz
-0000:0fbf*     _pompota
-0000:0fed*     _moveplz
-0000:10ce      _fadepal
-0000:16ce      _cop_fadepal
+0000:174e      _big_code_
+0000:174e*     CodeModelMismatch
+Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(outp.c)
+0000:174e      outp_
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(i4m.asm)
-0000:0cf8      __I4M
-0000:0cf8*     __U4M
+0000:1758      __I4M
+0000:1758*     __U4M
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(pia.asm)
-0000:0d17      __PIA
-0000:0d10*     __PIS
+0000:1777      __PIA
+0000:1770*     __PIS
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(kbhit.c)
-0000:0d2e      kbhit_
+0000:178e      kbhit_
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(xmsg.c)
-0000:0d45*     __exit_with_msg_
-0000:0d4a      __fatal_runtime_error_
+0000:17a5*     __exit_with_msg_
+0000:17aa      __fatal_runtime_error_
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(crwdata)
-0188:0202      __curbrk
-0188:020a      __STACKLOW
-0188:020c      __STACKTOP
-0188:020e      __cbyte
-0188:0210      __child
-0188:0212      __no87
-0188:021f      ___FPE_handler
-0188:0204      __psp
-0188:0213      __get_ovl_stack
-0188:0217      __restore_ovl_stack
-0188:021b      __close_ovl_file
-0188:0223      __LpCmdLine
-0188:0227      __LpPgmName
-0188:0206      __osmajor
-0188:0207      __osminor
-0188:0208      __osmode
-0188:0209      __HShift
+0196:0202      __curbrk
+0196:020a      __STACKLOW
+0196:020c      __STACKTOP
+0196:020e      __cbyte
+0196:0210      __child
+0196:0212      __no87
+0196:021f      ___FPE_handler
+0196:0204      __psp
+0196:0213      __get_ovl_stack
+0196:0217      __restore_ovl_stack
+0196:021b      __close_ovl_file
+0196:0223      __LpCmdLine
+0196:0227      __LpPgmName
+0196:0206      __osmajor
+0196:0207      __osminor
+0196:0208      __osmode
+0196:0209      __HShift
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmain086.c)
-0000:0d68      __CMain
+0000:17c8      __CMain
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(initrtns.c)
-0000:0dce      __InitRtns
-0000:0dce*     __FInitRtns
-0000:0e29      __FiniRtns
-0000:0e29*     __FFiniRtns
+0000:182e      __InitRtns
+0000:182e*     __FInitRtns
+0000:1889      __FiniRtns
+0000:1889*     __FFiniRtns
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(uselfn.c)
-0188:022c      ___uselfn
+0196:022c      ___uselfn
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(dosseg)
-0000:0e8e      __DOSseg__
+0000:18ee      __DOSseg__
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(enterdb.c)
-0000:0e8f      __EnterWVIDEO_
-0188:022e+     ___WD_Present
+0000:18ef      __EnterWVIDEO_
+0196:022e+     ___WD_Present
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(___argc.c)
-0188:2640      ____Argv
-0188:2644      ____Argc
+0196:2640      ____Argv
+0196:2644      ____Argc
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(amblksiz.c)
-0188:0230      __amblksiz
+0196:0230      __amblksiz
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(exit.c)
-0000:0eb3+     _null_exit_rtn_
-0000:0eb3+     __null_int23_exit_
-0000:0eb4      exit_
-0000:0ed5+     _exit_
-0188:0232+     ___int23_exit
-0188:0236+     ___FPE_handler_exit
+0000:1913+     _null_exit_rtn_
+0000:1913+     __null_int23_exit_
+0000:1914      exit_
+0000:1935+     _exit_
+0196:0232+     ___int23_exit
+0196:0236+     ___FPE_handler_exit
 Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(sgdef086)
-0188:023a      __Start_XI
-0188:0240      __End_XI
-0188:0240      __Start_YI
-0188:0240      __End_YI
+0196:023a      __Start_XI
+0196:0240      __End_XI
+0196:0240      __Start_YI
+0196:0240      __End_YI
 
 
                         +---------------------------+
@@ -191,17 +195,14 @@ Undefined Symbol                Referenced by
 
 init_copper_                    plzpart.o(/dos/z/plz/plzpart.c)
 close_copper_                   plzpart.o(/dos/z/plz/plzpart.c)
+set_plzstart_                   plz.o(/dos/z/plz/plz.c)
 setplzparas_                    plz.o(/dos/z/plz/plz.c)
 plzline_                        plz.o(/dos/z/plz/plz.c)
-tw_opengraph2_                  plz.o(/dos/z/plz/plz.c)
-set_plzstart_                   plz.o(/dos/z/plz/plz.c)
 init_copper_                    plz.o(/dos/z/plz/plz.c)
-tw_setrgbpalette_               plz.o(/dos/z/plz/plz.c)
 
 
                         +--------------------+
                         |   Libraries Used   |
                         +--------------------+
 
-plz.lib
 /dos/fdos/watcom2/lib286/dos/clibh.lib
diff --git a/tweak.c b/tweak.c
index 39163a15a5600cb5b1e5d4036aefd5a5528d58cc..d2eeb1f1afb0f3d858d0cefd9fc091b3d2e8ca35 100755 (executable)
--- a/tweak.c
+++ b/tweak.c
@@ -31,11 +31,11 @@ __asm{
 }\r
 }\r
 \r
-void tw_setrgbpalette(/*byte *p, */int r, int g, int b)\r
+void tw_setrgbpalette(int a, int r, int g, int b)\r
 {\r
        int i;\r
 //     modexWaitBorder();\r
-       outp(PAL_WRITE_REG, 0);  /* start at the beginning of palette */\r
+       outp(PAL_WRITE_REG, a);  /* start at the beginning of palette */\r
 //     for(i=0; i<PAL_SIZE/2; i++)\r
 //     {\r
                outp(PAL_DATA_REG, r);\r
diff --git a/tweak.h b/tweak.h
index 5eaa74d3e158ea8c4cdc9dac48c0ce59d98ed96d..0f640610781c70937f516bb268ff0099a6fbd94f 100755 (executable)
--- a/tweak.h
+++ b/tweak.h
@@ -3,7 +3,7 @@
 #include <i86.h>\r
 void tw_opengraph2();\r
 //void tw_setrgbpalette(byte *p);\r
-void tw_setrgbpalette(int r, int g, int b);\r
+void tw_setrgbpalette(int a, int r, int g, int b);\r
 \r
 #define PAL_READ_REG                   0x03C7   /* Color register, read address */\r
 #define PAL_WRITE_REG             0x03C8   /* Color register, write address */\r
diff --git a/tweak.o b/tweak.o
index cb1fe33265c7ccaca80fb2a5e6ec852c31242186..77a9ada1b92ced1ef1384f06abdac93dad96ebf9 100755 (executable)
Binary files a/tweak.o and b/tweak.o differ