X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=copper.c;h=9cb3c394f9d614239f1ed4759cbee8ab7f9fdd9a;hb=c7a2c3da1b2b97112ca29757ad1d6c7de962b78a;hp=6e8b16f4a80ae78205114b2855b723cdb49e43ae;hpb=3ab48c6caf5d5169a0618f4c1c14e4c70bbe6090;p=plz.git diff --git a/copper.c b/copper.c index 6e8b16f..9cb3c39 100755 --- a/copper.c +++ b/copper.c @@ -1,23 +1,22 @@ #include "copper.h" +int far cop_drop; +int far cop_plz; +int far cop_start; +char far * cop_fadepal; +char fadepal[768]; +char far *cop_pal; -__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 -} +word dtau[66]; + +int init_copper() +{ + word ccc; + for (ccc = 0; ccc < 65; ccc++) + { + dtau[ccc] = floor(ccc * ccc / 4 * 43 / 128 + 60); + } + return 0; } int close_copper() @@ -39,4 +38,5 @@ __asm{ mov dx,0 int 0fcH } + return 0; }