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
mov dx,0
int 0fcH
retf
-_init_copper:
+_init_copper: .global
mov bx,7
mov ax,1
mov cx,offset copper1
--- /dev/null
+#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
#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
#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
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