From: sparky4 Date: Wed, 17 Feb 2016 16:09:03 +0000 (-0600) Subject: fack!!!! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=bb9fe2bc82f2f7126bc7a9fde2b70bc67d17a8a9;p=plz.git fack!!!! --- diff --git a/asmyt.c b/asmyt.c index f06b7af..4427c78 100755 --- a/asmyt.c +++ b/asmyt.c @@ -35,7 +35,7 @@ __asm{ return start; } /* -function plzline(y, vseg) +int plzline(int y, int vseg) { // vseg represented a segment, so multiply by sixteen (shift left by 4) // to convert into an offset. @@ -117,7 +117,7 @@ function plzline(y, vseg) return 0; } -function setplzparas(c1, c2, c3, c4) +int setplzparas(int c1, int c2, int c3, int c4) { var psiniOffset = 0; var lsini16Offset = lsini16_GetOffset(); diff --git a/asmyt.o b/asmyt.o index 94c7522..25cb086 100755 Binary files a/asmyt.o and b/asmyt.o differ diff --git a/copper.c b/copper.c index 6e8b16f..2a608da 100755 --- a/copper.c +++ b/copper.c @@ -1,6 +1,6 @@ #include "copper.h" - +/* __asm{ mov bx,7 mov ax,1 @@ -18,7 +18,7 @@ __asm{ mov dx,COPPER_TEXT int 0fcH } -} +}*/ int close_copper() { @@ -39,4 +39,5 @@ __asm{ mov dx,0 int 0fcH } + return 0; } diff --git a/copper.o b/copper.o index 1577cdd..d7e7c16 100755 Binary files a/copper.o and b/copper.o differ diff --git a/makefile b/makefile index a9729e8..0eaad16 100755 --- a/makefile +++ b/makefile @@ -88,9 +88,12 @@ tweak.$(OBJ): tweak.h tweak.c wcl $(FLAGS) -c tweak.c asmyt.$(OBJ): asmyt.h asmyt.c wcl $(FLAGS) -c asmyt.c -#tasm compiled... -copper.$(OBJ): copper.h copper.asm +copper.$(OBJ): copper.h copper.c copper.asm wcl $(AFLAGS) -zcm=tasm -c copper.asm + wcl $(FLAGS) -c copper.c +#tasm compiled... +# copper.$(OBJ): copper.h copper.asm +# wcl $(AFLAGS) -zcm=tasm -c copper.asm # tweak.$(OBJ): tweak.h tweak.asm # wcl $(AFLAGS) -zcm=tasm -c tweak.asm # asmyt.$(OBJ): asmyt.h asmyt.asm diff --git a/plzpart.map b/plzpart.map index 74c9492..39d3dba 100755 --- a/plzpart.map +++ b/plzpart.map @@ -1,13 +1,18 @@ 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/02/17 10:02:42 +Created on: 16/02/17 10:08:56 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: _cop_drop is an undefined reference +Error! E2028: _cop_fadepal is an undefined reference +Error! E2028: _frame_count is an undefined reference +Error! E2028: _cop_plz is an undefined reference +Error! E2028: _fadepal is an undefined reference Error! E2028: setplzparas_ is an undefined reference Error! E2028: plzline_ is an undefined reference +Error! E2028: _cop_start is an undefined reference +------------+ @@ -17,7 +22,7 @@ Error! E2028: plzline_ is an undefined reference Group Address Size ===== ======= ==== -DGROUP 0197:0000 0000a650 +DGROUP 0102:0000 0000a650 @@ -29,27 +34,27 @@ Segment Class Group Address Size ======= ===== ===== ======= ==== plzpart_TEXT CODE AUTO 0000:0000 00000020 -copper_TEXT CODE AUTO 0000:0020 0000099b -tweak_TEXT CODE AUTO 0000:09c0 0000006d -plz_TEXT CODE AUTO 0000:0a30 00000a30 -asmyt_TEXT CODE AUTO 0000:1460 00000041 -_TEXT CODE AUTO 0000:14a2 000004c8 -FAR_DATA FAR_DATA AUTO 0196:000a 00000000 -_NULL BEGDATA DGROUP 0197:0000 00000020 -_AFTERNULL BEGDATA DGROUP 0199:0000 00000002 -CONST DATA DGROUP 0199:0002 00000000 -CONST2 DATA DGROUP 0199:0002 00000000 -_DATA DATA DGROUP 0199:0002 00000218 -XIB DATA DGROUP 01ba:000a 00000000 -XI DATA DGROUP 01ba:000a 00000006 -XIE DATA DGROUP 01bb:0000 00000000 -YIB DATA DGROUP 01bb:0000 00000000 -YI DATA DGROUP 01bb:0000 00000000 -YIE DATA DGROUP 01bb:0000 00000000 -STRINGS DATA DGROUP 01bb:0000 00000000 -DATA DATA DGROUP 01bb:0000 00000000 -_BSS BSS DGROUP 01bb:0000 00002406 -STACK STACK DGROUP 03fc:0000 00008000 +copper_TEXT CODE AUTO 0000:0020 00000048 +tweak_TEXT CODE AUTO 0000:0070 0000006d +plz_TEXT CODE AUTO 0000:00e0 00000a30 +asmyt_TEXT CODE AUTO 0000:0b10 00000041 +_TEXT CODE AUTO 0000:0b52 000004c8 +FAR_DATA FAR_DATA AUTO 0101:000a 00000000 +_NULL BEGDATA DGROUP 0102:0000 00000020 +_AFTERNULL BEGDATA DGROUP 0104:0000 00000002 +CONST DATA DGROUP 0104:0002 00000000 +CONST2 DATA DGROUP 0104:0002 00000000 +_DATA DATA DGROUP 0104:0002 00000218 +XIB DATA DGROUP 0125:000a 00000000 +XI DATA DGROUP 0125:000a 00000006 +XIE DATA DGROUP 0126:0000 00000000 +YIB DATA DGROUP 0126:0000 00000000 +YI DATA DGROUP 0126:0000 00000000 +YIE DATA DGROUP 0126:0000 00000000 +STRINGS DATA DGROUP 0126:0000 00000000 +DATA DATA DGROUP 0126:0000 00000000 +_BSS BSS DGROUP 0126:0000 00002406 +STACK STACK DGROUP 0367:0000 00008000 +----------------+ @@ -64,126 +69,114 @@ 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:005b* init_copper -0000:0030* close_copper -0000:0022 _cop_drop -0000:0024* _cop_pal -0000:0028* _do_pal -0000:002c* _cop_scrl -0000:002a _cop_start -0000:002e _cop_plz -0000:00fb* pompota -0000:0129* moveplz -0000:0207 _fadepal -0000:0807 _cop_fadepal +Module: copper.o(/dos/z/plz/copper.c) +0000:0020 close_copper_ Module: tweak.o(/dos/z/plz/tweak.c) -0000:09c0 tw_opengraph2_ -0000:0a08 tw_setrgbpalette_ +0000:0070 tw_opengraph2_ +0000:00b8 tw_setrgbpalette_ Module: plz.o(/dos/z/plz/plz.c) -0000:0a30 plz_ -0000:0cf8+ init_plz_ -0197:0022+ _ptau -0197:0122+ _curpal -0197:0124* _timetable -0197:0138+ _ttptr -0197:013a _l1 -0197:013c _l2 -0197:013e _l3 -0197:0140 _l4 -0197:0142 _k1 -0197:0144 _k2 -0197:0146 _k3 -0197:0148 _k4 -0197:014a _il1 -0197:014c _il2 -0197:014e _il3 -0197:0150 _il4 -0197:0152 _ik1 -0197:0154 _ik2 -0197:0156 _ik3 -0197:0158 _ik4 -0197:015a+ _inittable -0197:0240+ _pals +0000:00e0 plz_ +0000:03a8+ init_plz_ +0102:0022+ _ptau +0102:0122+ _curpal +0102:0124* _timetable +0102:0138+ _ttptr +0102:013a+ _l1 +0102:013c+ _l2 +0102:013e+ _l3 +0102:0140+ _l4 +0102:0142+ _k1 +0102:0144+ _k2 +0102:0146+ _k3 +0102:0148+ _k4 +0102:014a+ _il1 +0102:014c+ _il2 +0102:014e+ _il3 +0102:0150+ _il4 +0102:0152+ _ik1 +0102:0154+ _ik2 +0102:0156+ _ik3 +0102:0158+ _ik4 +0102:015a+ _inittable +0102:0240+ _pals Module: asmyt.o(/dos/z/plz/asmyt.c) -0000:1460 set_plzstart_ +0000:0b10 set_plzstart_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(stk086.asm) -0000:14a7 __STK -0000:14c7* __STKOVERFLOW_ +0000:0b57 __STK +0000:0b77* __STKOVERFLOW_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cstart) -0197:0000* __nullarea -0197:01fc* __ovlflag -0197:01fd* __intno -0197:01fe* __ovlvec -0000:14e4 _cstart_ -0000:15b7* _Not_Enough_Memory_ -0000:16e9 __exit_ -0000:1708 __do_exit_with_msg__ -0000:1765 __GETDS +0102:0000* __nullarea +0102:01fc* __ovlflag +0102:01fd* __intno +0102:01fe* __ovlvec +0000:0b94 _cstart_ +0000:0c67* _Not_Enough_Memory_ +0000:0d99 __exit_ +0000:0db8 __do_exit_with_msg__ +0000:0e15 __GETDS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmodel.asm) -0000:1770 _big_code_ -0000:1770* CodeModelMismatch +0000:0e20 _big_code_ +0000:0e20* CodeModelMismatch Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(i4m.asm) -0000:1770 __I4M -0000:1770* __U4M +0000:0e20 __I4M +0000:0e20* __U4M Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(pia.asm) -0000:178f __PIA -0000:1788* __PIS +0000:0e3f __PIA +0000:0e38* __PIS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(kbhit.c) -0000:17a6 kbhit_ +0000:0e56 kbhit_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(xmsg.c) -0000:17bd* __exit_with_msg_ -0000:17c2 __fatal_runtime_error_ +0000:0e6d* __exit_with_msg_ +0000:0e72 __fatal_runtime_error_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(crwdata) -0197:0202 __curbrk -0197:020a __STACKLOW -0197:020c __STACKTOP -0197:020e __cbyte -0197:0210 __child -0197:0212 __no87 -0197:021f ___FPE_handler -0197:0204 __psp -0197:0213 __get_ovl_stack -0197:0217 __restore_ovl_stack -0197:021b __close_ovl_file -0197:0223 __LpCmdLine -0197:0227 __LpPgmName -0197:0206 __osmajor -0197:0207 __osminor -0197:0208 __osmode -0197:0209 __HShift +0102:0202 __curbrk +0102:020a __STACKLOW +0102:020c __STACKTOP +0102:020e __cbyte +0102:0210 __child +0102:0212 __no87 +0102:021f ___FPE_handler +0102:0204 __psp +0102:0213 __get_ovl_stack +0102:0217 __restore_ovl_stack +0102:021b __close_ovl_file +0102:0223 __LpCmdLine +0102:0227 __LpPgmName +0102:0206 __osmajor +0102:0207 __osminor +0102:0208 __osmode +0102:0209 __HShift Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmain086.c) -0000:17e0 __CMain +0000:0e90 __CMain Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(initrtns.c) -0000:1846 __InitRtns -0000:1846* __FInitRtns -0000:18a1 __FiniRtns -0000:18a1* __FFiniRtns +0000:0ef6 __InitRtns +0000:0ef6* __FInitRtns +0000:0f51 __FiniRtns +0000:0f51* __FFiniRtns Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(uselfn.c) -0197:022c ___uselfn +0102:022c ___uselfn Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(dosseg) -0000:1906 __DOSseg__ +0000:0fb6 __DOSseg__ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(enterdb.c) -0000:1907 __EnterWVIDEO_ -0197:022e+ ___WD_Present +0000:0fb7 __EnterWVIDEO_ +0102:022e+ ___WD_Present Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(___argc.c) -0197:2640 ____Argv -0197:2644 ____Argc +0102:2640 ____Argv +0102:2644 ____Argc Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(amblksiz.c) -0197:0230 __amblksiz +0102:0230 __amblksiz Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(exit.c) -0000:192b+ _null_exit_rtn_ -0000:192b+ __null_int23_exit_ -0000:192c exit_ -0000:194d+ _exit_ -0197:0232+ ___int23_exit -0197:0236+ ___FPE_handler_exit +0000:0fdb+ _null_exit_rtn_ +0000:0fdb+ __null_int23_exit_ +0000:0fdc exit_ +0000:0ffd+ _exit_ +0102:0232+ ___int23_exit +0102:0236+ ___FPE_handler_exit Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(sgdef086) -0197:023a __Start_XI -0197:0240 __End_XI -0197:0240 __Start_YI -0197:0240 __End_YI +0102:023a __Start_XI +0102:0240 __End_XI +0102:0240 __Start_YI +0102:0240 __End_YI +---------------------------+ @@ -194,9 +187,14 @@ Undefined Symbol Referenced by ================ ============= init_copper_ plzpart.o(/dos/z/plz/plzpart.c) -close_copper_ plzpart.o(/dos/z/plz/plzpart.c) +_cop_drop plz.o(/dos/z/plz/plz.c) +_cop_fadepal plz.o(/dos/z/plz/plz.c) +_frame_count plz.o(/dos/z/plz/plz.c) +_cop_plz plz.o(/dos/z/plz/plz.c) +_fadepal plz.o(/dos/z/plz/plz.c) setplzparas_ plz.o(/dos/z/plz/plz.c) plzline_ plz.o(/dos/z/plz/plz.c) +_cop_start plz.o(/dos/z/plz/plz.c) init_copper_ plz.o(/dos/z/plz/plz.c)