]> 4ch.mooo.com Git - plz.git/commitdiff
fack
authorsparky4 <sparky4@cock.li>
Mon, 15 Feb 2016 20:01:43 +0000 (14:01 -0600)
committersparky4 <sparky4@cock.li>
Mon, 15 Feb 2016 20:01:43 +0000 (14:01 -0600)
copper.asm
copper.c [new file with mode: 0755]
copper.o
plz.c
plz.h
plz.o
plzpart.map
plzpart.o

index db5e8664176b75f0f0e96d3cb21fa29ef3834ae8..cbc118ee0980a1493aa7df9e1c38780f5dd92a2c 100755 (executable)
@@ -49,7 +49,7 @@ _cop_scrl:
        add             byte ptr [bx+si],al
 _cop_plz:
        add             word ptr [bx+si],ax
-_close_copper:
+_close_copper: .global
        mov             bx,7
        mov             ax,0
        mov             cx,0
@@ -66,7 +66,7 @@ _close_copper:
        mov             dx,0
        int             0fcH
        retf
-_init_copper:
+_init_copper: .global
        mov             bx,7
        mov             ax,1
        mov             cx,offset copper1
diff --git a/copper.c b/copper.c
new file mode 100755 (executable)
index 0000000..6e8b16f
--- /dev/null
+++ b/copper.c
@@ -0,0 +1,42 @@
+#include "copper.h"\r
+\r
+\r
+__asm{\r
+       mov             bx,7\r
+       mov             ax,1\r
+       mov             cx,offset copper1\r
+       mov             dx,COPPER_TEXT\r
+       int             0fcH\r
+       mov             bx,7\r
+       mov             ax,2\r
+       mov             cx,offset copper2\r
+       mov             dx,COPPER_TEXT\r
+       int             0fcH\r
+       mov             bx,7\r
+       mov             ax,0\r
+       mov             cx,offset copper3\r
+       mov             dx,COPPER_TEXT\r
+       int             0fcH\r
+}\r
+}\r
+\r
+int close_copper()\r
+{\r
+__asm{\r
+       mov             bx,7\r
+       mov             ax,0\r
+       mov             cx,0\r
+       mov             dx,0\r
+       int             0fcH\r
+       mov             bx,7\r
+       mov             ax,1\r
+       mov             cx,0\r
+       mov             dx,0\r
+       int             0fcH\r
+       mov             bx,7\r
+       mov             ax,2\r
+       mov             cx,0\r
+       mov             dx,0\r
+       int             0fcH\r
+}\r
+}\r
index d315cdbee972b7b7e2e7ae5bf4ac068760acd309..86dedcfbfd1a2c7bc22c360baf35c00f3e322e96 100755 (executable)
Binary files a/copper.o and b/copper.o differ
diff --git a/plz.c b/plz.c
index fd7c73590f75119c2537b747f63d1e3dc6c9076f..33e6d7f68c2bf727c74594164520f366f4c43ec4 100755 (executable)
--- a/plz.c
+++ b/plz.c
@@ -15,8 +15,8 @@
 #define SINMASK 4095\r
 #define PLZSINI(p1,p2,p3,p4)  *ptr++ = (psini[x*32+lsini[y*2+p2]*16+p1] + psini[y*4+lsini[x*64+p4]*4+p3]) + (psini[x*32+16+lsini[y*2+p2]*16+p1] + psini[y*4+lsini[x*64+32+p4]*4+p3])*256;\r
 \r
-extern int init_copper();\r
-extern int close_copper();\r
+// extern int init_copper();\r
+// extern int close_copper();\r
 extern int far frame_count;\r
 extern int far cop_drop;\r
 extern int far cop_plz;\r
diff --git a/plz.h b/plz.h
index 7f8ee3d7d9532a9f6c9da0b4df83cca3a5422429..240bf1cb7f096025d2f46e1298a5cc883bd58d59 100755 (executable)
--- a/plz.h
+++ b/plz.h
@@ -7,6 +7,9 @@
 #include "types.h"\r
 extern setplzparas();\r
 extern int plzline();\r
+extern int init_copper();\r
+extern int close_copper();\r
+\r
 // extern void tw_opengraph2();\r
 //extern int\r
 // extern void tw_setrgbpalette();\r
diff --git a/plz.o b/plz.o
index 91c65731e7a1efb3abfe3fa4758b4dbe9a7f9f21..f7e08d3e90d4fd72b56329d81d5fc289b830df1f 100755 (executable)
Binary files a/plz.o and b/plz.o differ
index b46eab806649e5dbcc7a27e8c32e791d7ed21849..b5afaee121c5ee776d0a7f33031d53ee7bc6b23a 100755 (executable)
@@ -1,7 +1,7 @@
 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/15 13:42:01
+Created on:       16/02/15 14:01:39
 Executable Image: plzpart.exe
 creating a DOS executable
 Error! E2028: init_copper_ is an undefined reference
index 40366cac85af81dd581224509012aacf8d25e1b2..9652036e6163b3f97bb1b29c5bb0d5eb7bd3c5d2 100755 (executable)
Binary files a/plzpart.o and b/plzpart.o differ