--- /dev/null
+#include "asmyt.h"\r
+void set_plzstart(word start)\r
+{\r
+__asm{\r
+ mov dx, 3d4h\r
+ mov al, 18h ; linecompare\r
+ mov ah, [Byte start]\r
+ out dx, ax\r
+ mov al, 07h\r
+ mov ah, [Byte start+1]\r
+ shl ah, 4d\r
+ and ah, 10h\r
+ or ah, 0fh\r
+ out dx, ax ; 8th bit\r
+}\r
+ return start;\r
+}\r
#ifndef _ASMYT_H_\r
#define _ASMYT_H_\r
-int plzline();\r
-\r
+#include "types.h"\r
+int plzline(int y, int vseg);\r
+int setplzparas(int c1, int c2, int c3, int c4);\r
+word set_plzstart(word start);\r
#endif\r
wcl $(FLAGS) -c plz.c\r
tweak.$(OBJ): tweak.h tweak.c\r
wcl $(FLAGS) -c tweak.c\r
+asmyt.$(OBJ): asmyt.h asmyt.c\r
+ wcl $(FLAGS) -c asmyt.c\r
#tasm compiled...\r
copper.$(OBJ): copper.h copper.asm\r
wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
extern char far *cop_pal;\r
extern int do_pal;\r
\r
-extern int plzline(int y, int vseg);\r
-extern int setplzparas(int c1, int c2, int c3, int c4);\r
-extern int set_plzstart(int y);\r
+//extern int plzline(int y, int vseg);\r
+//extern int setplzparas(int c1, int c2, int c3, int c4);\r
+//extern int set_plzstart(int y);\r
extern char far psini[16384];\r
extern int far lsini4[8192];\r
extern int far lsini16[8192];\r
\r
init_plz();\r
cop_drop=128;\r
- cop_fadepal=pals[curpal++];\r
+ cop_fadepal=(char far *)pals[curpal++];\r
\r
frame_count=0;\r
while(!kbhit())\r
// {\r
memset(fadepal,0,768);\r
cop_drop=1;\r
- cop_fadepal=pals[curpal++];\r
+ cop_fadepal=(char far *)pals[curpal++];\r
ttptr++;\r
il1=inittable[ttptr][0];\r
il2=inittable[ttptr][1];\r
+++ /dev/null
-plz.c(74): Warning! W113: Pointer type mismatch
-plz.c(74): Note! I2003: source conversion type is 'int *'
-plz.c(74): Note! I2004: target conversion type is 'char __far *'
-plz.c(84): Warning! W113: Pointer type mismatch
-plz.c(84): Note! I2003: source conversion type is 'int *'
-plz.c(84): Note! I2004: target conversion type is 'char __far *'
#include "asmyt.h"\r
#include "copper.h"\r
#include "tweak.h"\r
+#include "types.h"\r
extern setplzparas();\r
extern int plzline();\r
// extern void tw_opengraph2();\r
-extern int set_plzstart();\r
+//extern int\r
// extern void tw_setrgbpalette();\r
\r
void init_plz();\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.
+Open Watcom Linker Version 2.0 beta Jan 20 2016 10:21:07 (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/15 11:08:20
+Created on: 16/02/15 11:29:55
Executable Image: plzpart.exe
creating a DOS executable
Error! E2028: init_copper_ is an undefined reference