From: sparky4 Date: Mon, 15 Feb 2016 20:01:43 +0000 (-0600) Subject: fack X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=3ab48c6caf5d5169a0618f4c1c14e4c70bbe6090;p=plz.git fack --- diff --git a/copper.asm b/copper.asm index db5e866..cbc118e 100755 --- a/copper.asm +++ b/copper.asm @@ -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 index 0000000..6e8b16f --- /dev/null +++ b/copper.c @@ -0,0 +1,42 @@ +#include "copper.h" + + +__asm{ + mov bx,7 + mov ax,1 + mov cx,offset copper1 + mov dx,COPPER_TEXT + int 0fcH + mov bx,7 + mov ax,2 + mov cx,offset copper2 + mov dx,COPPER_TEXT + int 0fcH + mov bx,7 + mov ax,0 + mov cx,offset copper3 + mov dx,COPPER_TEXT + int 0fcH +} +} + +int close_copper() +{ +__asm{ + mov bx,7 + mov ax,0 + mov cx,0 + mov dx,0 + int 0fcH + mov bx,7 + mov ax,1 + mov cx,0 + mov dx,0 + int 0fcH + mov bx,7 + mov ax,2 + mov cx,0 + mov dx,0 + int 0fcH +} +} diff --git a/copper.o b/copper.o index d315cdb..86dedcf 100755 Binary files a/copper.o and b/copper.o differ diff --git a/plz.c b/plz.c index fd7c735..33e6d7f 100755 --- a/plz.c +++ b/plz.c @@ -15,8 +15,8 @@ #define SINMASK 4095 #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; -extern int init_copper(); -extern int close_copper(); +// extern int init_copper(); +// extern int close_copper(); extern int far frame_count; extern int far cop_drop; extern int far cop_plz; diff --git a/plz.h b/plz.h index 7f8ee3d..240bf1c 100755 --- a/plz.h +++ b/plz.h @@ -7,6 +7,9 @@ #include "types.h" extern setplzparas(); extern int plzline(); +extern int init_copper(); +extern int close_copper(); + // extern void tw_opengraph2(); //extern int // extern void tw_setrgbpalette(); diff --git a/plz.o b/plz.o index 91c6573..f7e08d3 100755 Binary files a/plz.o and b/plz.o differ diff --git a/plzpart.map b/plzpart.map index b46eab8..b5afaee 100755 --- a/plzpart.map +++ b/plzpart.map @@ -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 diff --git a/plzpart.o b/plzpart.o index 40366ca..9652036 100755 Binary files a/plzpart.o and b/plzpart.o differ