From 3ab48c6caf5d5169a0618f4c1c14e4c70bbe6090 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 15 Feb 2016 14:01:43 -0600 Subject: [PATCH] fack --- copper.asm | 4 ++-- copper.c | 42 ++++++++++++++++++++++++++++++++++++++++++ copper.o | Bin 7619 -> 7619 bytes plz.c | 4 ++-- plz.h | 3 +++ plz.o | Bin 5309 -> 5309 bytes plzpart.map | 2 +- plzpart.o | Bin 601 -> 601 bytes 8 files changed, 50 insertions(+), 5 deletions(-) create mode 100755 copper.c 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 d315cdbee972b7b7e2e7ae5bf4ac068760acd309..86dedcfbfd1a2c7bc22c360baf35c00f3e322e96 100755 GIT binary patch delta 38 tcmX?Xeb{<}ymVQ@XvH%l!4oUz3 delta 38 tcmX?Xeb{<}y!6y{t{$TLDfz|vRr&=vRr<;K1qG=^dWprk&Ks>dWdR%24oUz3 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 91c65731e7a1efb3abfe3fa4758b4dbe9a7f9f21..f7e08d3e90d4fd72b56329d81d5fc289b830df1f 100755 GIT binary patch delta 60 vcmdn1xmR<7wxMjEzlVT+N`A3^m3~1E80#hTbVx8Xyi~#>mBF+zCQ$?cYe^I` delta 60 ucmdn1xmR<7w&Bfae-8oul>B1-D*b{SFxE>>?vP+;c!^CaBW`0%q6h%1z!ow9 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 40366cac85af81dd581224509012aacf8d25e1b2..9652036e6163b3f97bb1b29c5bb0d5eb7bd3c5d2 100755 GIT binary patch delta 59 zcmcb~a+76(KC?@n|HMF1u4J_i8HR?Jt{|Qmqr$|DDlw%ze-8oul>B1-D*b{SFxJap J+V~@p5dcIN6T1Ka delta 59 zcmcb~a+76(KJ(^S--&^uT*;?8WEdJ=f_Y+$M<-@fiQSC$_Ylxe$uHKg(l5vXW4(;H IjXx3@0jDJvy8r+H -- 2.39.5