From 0e834f9efe191399836e7ba6e1817ae824d025f9 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 5 Aug 2016 12:54:36 -0500 Subject: [PATCH] hmmm --- asmyt.asm | 6 +- asmyt.err | 10 --- asmyt.o | Bin 0 -> 1329 bytes copper.lib | Bin 2048 -> 2048 bytes plzpart.map | 2 +- u2plz/MAIN.C | 12 +-- u2plz/MAIN.OBJ | Bin 0 -> 449 bytes u2plz/PLZ.C | 12 +-- u2plz/PLZFILL.BAK | 186 ++++++++++++++++++++++++++++++++++++++++++++++ u2plz/PLZPART.DSK | Bin 757 -> 1859 bytes u2plz/PLZPART.PRJ | Bin 6300 -> 5950 bytes 11 files changed, 202 insertions(+), 26 deletions(-) delete mode 100755 asmyt.err create mode 100755 asmyt.o create mode 100755 u2plz/MAIN.OBJ create mode 100755 u2plz/PLZFILL.BAK diff --git a/asmyt.asm b/asmyt.asm index d901c9b..3fac231 100755 --- a/asmyt.asm +++ b/asmyt.asm @@ -12,15 +12,15 @@ ASSUME cs:poro PUBLIC C plzline, C setplzparas, C psini, C lsini4, C lsini16 LABEL psini BYTE -;;INCLUDE 'psini.inc' +INCLUDE 'psini.inc' ; db 16384 dup(?) LABEL lsini4 WORD -;;INCLUDE 'lsini4.inc' +INCLUDE 'lsini4.inc' ; db 16384 dup(?) LABEL lsini16 WORD -;;INCLUDE 'lsini16.inc' +INCLUDE 'lsini16.inc' ; db 16384 dup(?) PROC C plzline diff --git a/asmyt.err b/asmyt.err deleted file mode 100755 index 306fb1b..0000000 --- a/asmyt.err +++ /dev/null @@ -1,10 +0,0 @@ -asmyt.asm(26): Error! E514: Colon is expected -asmyt.asm(30): Error! E065: Operator is expected -asmyt.asm(89): Error! E065: Operator is expected -asmyt.asm(93): Error! E600: 'C' is already defined -asmyt.asm(95): Error! E611: ARG may only be used within a PROC and before the first instruction -asmyt.asm(114): Error! E506: Block nesting error -asmyt.asm(118): Error! E600: 'C' is already defined -asmyt.asm(120): Error! E611: ARG may only be used within a PROC and before the first instruction -asmyt.asm(128): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(134): Error! E506: Block nesting error diff --git a/asmyt.o b/asmyt.o new file mode 100755 index 0000000000000000000000000000000000000000..a398f3e44bf01bbeafe6d3f4cf5f7e7da3724cb7 GIT binary patch literal 1329 zcmZuwZA?>V6n@^`mX-p;A)AWmoF6cCLhIasO(qCjK+#rOFHR#jSYS1yl-Ob>iLSE= z;pGC^563n}BFm=XhcW&z&cQ;AYZS7^LAHctSvF=W5o5$a*HmKGowggpWcMREAMbh2 z^W1ZfCmm_I^-foATW(8JTW+1pamt-z8|x6@`NG<}N zZi_{*R#_5C%d1TX&H5NA*;;nU>iSd*`z+I{SfoP(&tE2Xp;rq{iD|#ZI!U<-Kqs)2 zUL6u*vF%^RgNXu5jvkbw@b{vzLFff$>rH@Krf#dEp$Z{M%|`n4NQkH+LPQhCf^ssXoUMv*F{p^aO$>z$WGsCQfsF$BgF>q&i?;_OUNNLn z#8BZNT5lR|bT@|O+INl|-S>UG^Ok=)OEunyndWN#JHJC+hk)Th7{_9)hRuwNce(UP z5q~v~O-xa8YySrL6D2mfHl3+_+38H}_e#unPEw72BB}i6C1Lccq;d`ngIxm`rwB3* z6(*?1TnZS+;$7m=0TmagImPc!Oc}>Kz9MSDZ~a@u#RojBDWb|bMVz`VE&$s+r}@bs z7ek8p8+_@pAI>xbDV~Tzfb+)F1m(;AcdNi2C|gHr^zw1lu6O zh)TSUD%u(o_CUfu9K`_~gB8u>wc#+-tQMKfhI(el$Lu|P#T>ZIoVdx(;1Biz0xW6Z z64ZbIRdfrWMFKPwNP-@T&>+v$y z5xp#I!bWVx7NYqIa*;z+U&U+KPIL{(!y80-2i_tX1<1!Pyp2NaBtg4Tj3ShitTL2h zFA1uQ3ENMys$fAiNi!quS}K_4zeNTDT`ADZ$Bw@%+nn|EWnCS5c+NLF8yv0qdEdqy QN1fZApJ%_*sRG=81KMc25C8xG literal 0 HcmV?d00001 diff --git a/copper.lib b/copper.lib index cf5aecc9a643b3985c8bc60c154b1cfca4e3a8bb..1cd15602faf65b3487ddfeb430cd6cabe4c2bed4 100755 GIT binary patch delta 24 fcmZn=Xb{-&n3=2n!jf>FE+z(sl8J)Ci&$6yYYPW{ delta 24 fcmZn=Xb{-&n3?Oc+v0HVE+z(sl8J)Ci&$6yYMTds diff --git a/plzpart.map b/plzpart.map index a7aef91..cc1717e 100755 --- a/plzpart.map +++ b/plzpart.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Feb 1 2016 01:01:49 (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/08/04 08:44:52 +Created on: 16/08/05 12:44:40 Executable Image: plzpart.exe creating a DOS executable Error! E2028: init_copper_ is an undefined reference diff --git a/u2plz/MAIN.C b/u2plz/MAIN.C index bf421c4..b1bb0b3 100755 --- a/u2plz/MAIN.C +++ b/u2plz/MAIN.C @@ -1,13 +1,13 @@ -#include "..\dis\dis.h" +//#include "..\dis\dis.h" extern plz(); -extern vect(); +//extern vect(); main() { - dis_partstart(); + //cd udis_partstart(); init_copper(); - initvect(); + //initvect(); plz(); - vect(); + //vect(); close_copper(); - } \ No newline at end of file + } diff --git a/u2plz/MAIN.OBJ b/u2plz/MAIN.OBJ new file mode 100755 index 0000000000000000000000000000000000000000..b773069ab2df51c5deeead38775e6ed296b68598 GIT binary patch literal 449 zcmYLFO-lk%6g~6p$Cx2Pqnm^_fgwZ?ZFL;YMHx9t1oaSeVVH^ug|%oCOf`!Z5g{#F z^b`6Qx#$P9C?fhm+Uv&NjFa(r_Z~Rs-t*o$aY0;(XI5kCv!MV8>gv*BBvEfxi?yAI z8jVI4V)Fw-0Qwvbj0xbYR~9nPOv(^}cLp#=fWw(3{RrZ4+&#b#Rd5Jk*N}h#b)lO$ zy2-Re-;8{GJqNh0XAoW6(0MhR)C7`@>v7&LB$3N;^oq&!dN#jyetimetable[ttptr]) - { + //if(dis_getmframe()>timetable[ttptr]) + // { memset(fadepal,0,768); cop_drop=1; cop_fadepal=pals[curpal++]; @@ -90,7 +90,7 @@ plz(){ ik2=inittable[ttptr][5]; ik3=inittable[ttptr][6]; ik4=inittable[ttptr][7]; - } + // } if(curpal==5 && cop_drop>64) break; asm mov dx, 3c4h diff --git a/u2plz/PLZFILL.BAK b/u2plz/PLZFILL.BAK new file mode 100755 index 0000000..ae73c18 --- /dev/null +++ b/u2plz/PLZFILL.BAK @@ -0,0 +1,186 @@ +#include +#include +#include +#include +#include "tweak.h" + +extern far do_line(char far *to, int dx, int dy, int cnt, char far *from, long txx1, long txy1, long txx2, long txy2, int dseg); +extern far do_block(int ycnt); +extern far do_clear(char far *vmem, int far *otau, int far *ntau); + +extern int acstau[256]; +int sini[2000]; +char (* far vmem)[160]=MK_FP(0x0a000,0); +extern char far kuva1[128][256]; +extern char far kuva2[128][256]; +extern char far kuva3[128][256]; +extern char far dist1[128][256]; +char far buu[1000]; +char sinx[128], siny[128]; +char pal[768]; + +int clrtau[8][256][2]; +int clrptr=0; + +initvect() { + int a,b,x,y,s,d=0,p=0,ch; + + for(a=0;a<1524;a++) + { + sini[a]=s=sin(a/1024.0*M_PI*4)*127; + s-=sini[a]; + } + +/* for(a=0;a<65;a++) for(b=0;b<256;b++) // chessboard + { x=1; if((a>>4)&1) x^=3; if((b>>5)&1) x^=3; kuva[a][b]=x; } + + pal[0*192+3*1]=pal[0*192+3*1+1]=pal[0*192+3*1+2]=40; + pal[0*192+3*2]=pal[0*192+3*2+1]=pal[0*192+3*2+2]=60; +*/ + for(a=1;a<32;a++) // must-sini-valk + { pal[0*192+a*3]=0; pal[0*192+a*3+1]=0; pal[0*192+a*3+2]=a*2; } + for(a=0;a<32;a++) + { pal[0*192+a*3+32*3]=a*2; pal[0*192+a*3+1+32*3]=a*2; pal[0*192+a*3+2+32*3]=63; } + + for(a=0;a<32;a++) // must-pun-kelt + { pal[1*192+a*3]=a*2; pal[1*192+a*3+1]=0; pal[1*192+a*3+2]=0; } + for(a=0;a<32;a++) + { pal[1*192+a*3+32*3]=63; pal[1*192+a*3+1+32*3]=a*2; pal[1*192+a*3+2+32*3]=0; } + + + for(a=0;a<32;a++) // must-orans-viol + { pal[2*192+a*3]=a; pal[2*192+a*3+1]=0; pal[2*192+a*3+2]=a*2/3; } + for(a=0;a<32;a++) + { pal[2*192+a*3+32*3]=31-a; pal[2*192+a*3+1+32*3]=a*2; pal[2*192+a*3+2+32*3]=21; } + + + for(y=0;y<64;y++) for(x=0;x<256;x++) + { + kuva1[y][x]=sini[(y*4+sini[x*2])&511]/4+32; + kuva2[y][x]=sini[(y*4+sini[x*2])&511]/4+32+64; + kuva3[y][x]=sini[(y*4+sini[x*2])&511]/4+32+128; + } + + for(y=0;y<128;y++) for(x=0;x<256;x++) + dist1[y][x]=sini[y*8]/3; + + for(a=0;a<8*256;a++) { clrtau[0][a][0]=640; clrtau[0][a][1]=0; } + } + +extern far char * to; +extern far char * from; +extern far int * ctau; +extern far int dseg; +extern far int xx, yy; +extern far long ay1,ay2,ax1,ax2,xx1,yy1,xx2,yy2; +extern far long txx1,txy1,tay1,tax1; +extern far long txx2,txy2,tay2,tax2; + +int kuvataus[]={FP_SEG(kuva1),FP_SEG(kuva2),FP_SEG(kuva3),FP_SEG(kuva1)}; +int disttaus[]={FP_SEG(dist1),FP_SEG(dist1),FP_SEG(dist1),FP_SEG(dist1)}; + +do_poly(x1,y1,x2,y2,x3,y3,x4,y4,color, dd) +int x1,y1,x2,y2,x3,y3,x4,y4,color, dd; + { + int a,b,c,d,n=0,m,s1,s2,d1,d2,dx1,dy1,dx2,dy2; + + struct points { + int x,y; } pnts[4],txt[4]={{64,4},{190,4},{190,60},{64,60}}; +// int x,y; } pnts[4],txt[4]={{1,1},{63,1},{63,63},{1,63}}; + + dd=(dd+1)&63; + + pnts[0].x=x1; pnts[0].y=y1; + pnts[1].x=x2; pnts[1].y=y2; + pnts[2].x=x3; pnts[2].y=y3; + pnts[3].x=x4; pnts[3].y=y4; + + for(n=0,a=1;a<4;a++) if(pnts[a].yS5Xb+Uinc{TJSZ(a1O*R*MLdZoLrkSKO=E4XN)AQrK`hp9y$C*n;Kj%A z5qt#CK7j`j4|?&Uv)Qi3)YMHvGRtK0n~$BH+Ue1DM>ln|vwzaMIMEBc?UtSe8yTBm zSs=ZGW0nT6!m{ic_qatHCdTPrbM2yI<&Cv6*grQ=Hi}N({Kt%uAJ^V06m2_TOUj6g zYy);tK>)ReWt0>HEjp%MUsg@athlaKRYX&zHfz6ZBl0433uj1T6ir$WB2B9)%whp0 z%;ZhirS}Xyy!Pgzx8==yR14Rr);#(wRHX2JR`tMgo`3pfSMRDg?~U179mt5-Zl?7d zUr8DA)|*oFE^Memor+_Wt+_cr(I}qO165V7au2Th#LGb15$UTopkGhk-Bics9gyuYCWelWphXp@xl7TbQ#?gnnA1xZSu$lFGAO7FIFw|`&n>`|jZ z;`fuDGDM9t zZbYarS~DeKQih>C-P2P6sD&IojJDuW>d3j+s(GLX&2z{McI zprz*=5C9~#fEZ+kvsFw~j8P2Gp#hFTAu&K{hA)h38A2HtjDUK8V6xf^8Dttw11YYF zAl6Vne?LcGR|5mETM38qS4JIBM1dW=L3Xm*4iyFl2+ag^c@VL-5*@3M!1={6fssJq gkP`iYU}x4coFEk9KtqX2C)h)T0~jLz|1&TE0O$c^Gynhq diff --git a/u2plz/PLZPART.PRJ b/u2plz/PLZPART.PRJ index 6978e8db1509c8d98456eb3b3ef1264f7c258434..105ddb1e853db3bc7ce5a2c4d4e1d30568646461 100755 GIT binary patch delta 65 zcmbPZxKD3GydWzBLu!fdzRl-E L<}*${Eq)OIOyd!3 delta 418 zcmdm|H^*>8ydWzRLwULDpo$-g=I~zCdj(4EzirvH$;pMBR_`ta`uBvoZoDLcmG`e4-rTDtWP}tOqI$04ojl z^z#hS^Yn9uSOR4Dgu1xGHFJSAb3=`QTjL4V>+By8;2H#1%YnrrpgqnE3>*y147~dp zoms#tSQ$zafX-%vD#wrn%YiNM0lCi54B3> C-hMLx -- 2.39.5