<samp id="2irls"><ruby id="2irls"></ruby></samp>
  • <samp id="2irls"><li id="2irls"></li></samp>
      <th id="2irls"><delect id="2irls"></delect></th>

          <th id="2irls"><delect id="2irls"></delect></th>

            (玩電子) 電子技術學習與研究
            當前位置:單片機教程網 >> MCU設計實例 >> 瀏覽文章

            基于stc51單片機的光立方c語言源代碼

            作者:佚名   來源:本站原創   點擊數:x  更新時間:2013年08月16日   【字體:


            電路圖等制作資料請到這里下載:http://www.ztb9j.tw/bbs/dpj-20613-1.html
            下面是程序源碼:
             

            #include<STC12C5A60S2.h>
            #define uint unsigned int
            #define uchar unsigned char
            sbit keyamenu=P4^4;//按鍵
            sbit keyout=P4^5;
            sbit keymenu=P4^6;
            uint code tab_water[]={
            0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0080,0x0140,0x0080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
            0x0000,0x0000,0x0000,0x0000,0x0000,0x0080,0x0140,0x0220,0x0140,0x0080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
            0x0000,0x0000,0x0000,0x0000,0x01c0,0x0220,0x0410,0x0410,0x0410,0x0220,0x01c0,0x0000,0x0000,0x0000,0x0000,0x0000,    
            0x0000,0x0000,0x0000,0x03e0,0x0410,0x0808,0x0808,0x0808,0x0808,0x0808,0x0410,0x03e0,0x0000,0x0000,0x0000,0x0000,
            0x0000,0x0000,0x07f0,0x0808,0x1004,0x1004,0x1004,0x1004,0x1004,0x1004,0x1004,0x0808,0x07f0,0x0000,0x0000,0x0000,
            0x0000,0x0ff8,0x1004,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x1004,0x0ff8,0x0000,0x0000,
            0x1ffc,0x2002,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x2002,0x1ffc,0x0000
            };
            char code tab00[]={7,7,7,7,7,7,7,7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,//28
                     8+6,8+6,8+6,8+6,8+6,8+6,8+5,8+4,8+3,8+2,8+1,8+1,8+1,8+1,8+1,8+1,8+2,8+3,8+4,8+5,//20
                     16+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//12
                   24+4,24+4,24+3,24+3,//24+4
                   32+4,32+4,32+3,32+3,
                     40+5,40+5,40+5,40+5,40+4,40+3,40+2,40+2,40+2,40+2,40+3,40+4,//12
                     48+6,48+6,48+6,48+6,48+6,48+6,48+5,48+4,48+3,48+2,48+1,48+1,48+1,48+1,48+1,48+1,48+2,48+3,48+4,48+5,//20
                   56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+6,56+5,56+4,56+3,56+2,56+1,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+1,56+2,56+3,56+4,56+5,56+6//28
            };
            char code tab10[]={56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+6,56+5,56+4,56+3,56+2,56+1,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+1,56+2,56+3,56+4,56+5,56+6,//56+28
                     48+6,48+6,48+6,48+6,48+6,48+6,48+5,48+4,48+3,48+2,48+1,48+1,48+1,48+1,48+1,48+1,48+2,48+3,48+4,48+5,//20
                     40+5,40+5,40+5,40+5,40+4,40+3,40+2,40+2,40+2,40+2,40+3,40+4,//12
                   32+4,32+4,32+3,32+3,
                   24+4,24+4,24+3,24+3,//24+4
                     16+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//12
                     8+6,8+6,8+6,8+6,8+6,8+6,8+5,8+4,8+3,8+2,8+1,8+1,8+1,8+1,8+1,8+1,8+2,8+3,8+4,8+5,//20
                   7,7,7,7,7,7,7,7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6//28
            };
            char code tab01[]={7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,7,7,7,7,7,7,//28
                   6,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//20
                   5,4,3,2,2,2,2,3,4,5,5,5,//12
                   4,3,3,4,//
                  4,3,3,4,
                  5,4,3,2,2,2,2,3,4,5,5,5,//12
                  6,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//20
                   7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,7,7,7,7,7,7,//28
            };
            uchar code tab_print[]={//打印函數使用
            0X00,0X00,0X81,0XFF,0XFF,0X81,0X00,0X00,//I
            0X1C,0X3E,0X7E,0XFC,0XFC,0X7E,0X3E,0X1C,//心
            0X3F,0X7F,0X80,0X80,0X80,0X80,0X7F,0X3F,//U
            0X3C,0X42,0X14,0XA1,0XA1,0X14,0X42,0X3C,//笑臉
            0X00,0X73,0XE9,0X89,0X89,0X8F,0X4F,0X00,//5
            0X00,0XC6,0X86,0X89,0X99,0XB1,0XE7,0XC6,//2
            0X3C,0X7E,0X81,0X81,0X81,0X7E,0X3C,0X00,//0
            0X00,0X00,0X3C,0X3C,0X3C,0X3C,0X00,0X00,//正方形
            0X20,0X30,0X38,0X3C,0X3C,0X38,0X30,0X20,//三角形
            0X08,0X14,0X22,0X77,0X14,0X14,0X14,0X1C,//箭頭
            0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,//全亮
            0X00,0X00,0X80,0XFF,0XFF,0X82,0X00,0X00,//1
            0X00,0X76,0XFF,0X89,0X89,0X81,0XC2,0X00,//3
            0X00,0X00,0X80,0XFF,0XFF,0X82,0X00,0X00,//1
            0X20,0XA0,0XFF,0XFF,0XA3,0X22,0X3C,0X30//4
            };
            char code tab_mian[]={4,3,7,2,0,6,1,5};
            char code tab_xian[]={5,0,3,6,1,7,4,2};
            char code tab_dian[]={
            0,1,3,4,7,2,6,5,
            1,7,5,0,4,2,3,6,
            1,6,4,0,7,5,2,3,
            5,7,4,2,0,1,6,3,
            1,6,3,4,5,2,0,7,
            6,7,1,5,4,2,0,3,
            2,0,3,1,5,7,6,4,
            5,2,1,0,3,6,7,4,
            
            0,7,4,3,2,6,5,1,
            4,7,2,6,5,3,1,0,
            0,1,4,3,2,5,6,7,
            3,6,7,2,1,4,0,5,
            5,2,1,0,7,6,4,3,
            1,4,0,2,3,5,7,6,
            4,2,1,5,6,0,7,3,
            0,4,7,3,1,5,2,6,
            
            1,0,6,7,4,5,3,2,
            6,0,4,2,7,5,1,3,
            3,1,2,6,7,5,0,4,
            2,4,1,0,6,5,3,7,
            6,2,1,5,7,4,3,0,
            1,0,5,3,2,6,7,4,
            7,1,0,4,2,5,6,3,
            6,4,1,0,2,5,7,3,
            
            2,6,7,0,3,5,1,4,
            6,3,7,2,1,4,5,0,
            7,0,5,6,1,3,4,2,
            5,2,3,4,0,7,1,6,
            2,3,0,7,6,4,1,5,
            1,3,0,4,5,2,7,6,
            3,4,2,5,6,0,1,7,
            4,2,0,6,3,7,5,1,
            
            4,1,6,0,7,3,2,5,
            7,6,0,5,1,4,2,3,
            6,1,3,2,7,0,5,4,
            2,7,3,6,0,5,1,4,
            6,5,2,1,0,3,7,4,
            7,1,0,5,4,6,3,2,
            1,7,3,2,6,0,5,4,
            0,2,6,7,4,3,5,1,
            
            0,5,4,1,6,3,2,7,
            0,1,5,4,7,2,3,6,
            1,4,2,3,5,7,6,0,
            2,7,0,5,6,1,3,4,
            2,1,6,0,4,5,3,7,
            6,1,5,4,2,7,3,0,
            4,0,5,2,1,6,7,3,
            1,2,0,6,3,7,4,5,
            
            5,0,1,2,4,3,7,6,
            4,2,0,6,7,5,1,3,
            2,3,7,4,6,1,0,5,
            1,5,7,0,3,4,2,6,
            2,7,6,3,5,1,0,4,
            4,5,7,0,2,3,1,6,
            0,5,7,3,2,1,6,4,
            6,4,5,7,1,0,3,2,
            
            1,6,5,7,0,2,3,4,
            2,1,5,3,6,4,0,7,
            0,6,5,4,3,7,0,2,
            6,4,2,0,3,1,5,7,
            4,5,7,6,0,3,1,2,
            0,3,7,2,1,5,6,4,
            5,2,4,0,1,3,7,2,
            4,5,3,1,7,0,2,6
            };
            uchar code tab_shandian[]={
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//1
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//2
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//3
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//4
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//5
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//6
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//7
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8
            
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x80,0x00,0x00,0x00,0x00,0x00,0x00,//9
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x00,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x00,0x00,0x00,0x00,0x00,//10
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//11
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//12
            
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//13
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//14
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//15
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//16
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x07,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x00,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//17
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x0f,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//18
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x1f,
             0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//19
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x3f,
             0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//20
            
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x81,0x7f,
             0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//21
            
             0x00,0x00,0x00,0x00,0x00,0x01,0x81,0xff,
             0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
             0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
             0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,
            
             0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
             0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
             0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//22
            };
            uchar code yc_table[]={//2幀,yinchu函數使用
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,//1I
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,//2心臟
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
             0x00,0x00,0x18,0x7e,0x7e,0x18,0x00,0x00,
             0x00,0x00,0x3c,0x7e,0x7e,0x3c,0x00,0x00,
             0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
             0x00,0x00,0x7e,0xff,0xff,0x7e,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,//3U
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x24,0x24,0x00,0x00,0x00,//4蘋果
             0x00,0x00,0x00,0x7e,0x7e,0x00,0x00,0x00,
             0x00,0x00,0x3c,0xff,0x7e,0x3c,0x00,0x00,
             0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
             0x00,0x00,0x3c,0xfe,0xfe,0x3c,0x00,0x00,
             0x00,0x00,0x00,0x6e,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x18,0x10,0x00,0x00,0x00,
             0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//5五角星
             0x00,0x00,0x00,0x22,0x22,0x00,0x00,0x00,
             0x00,0x00,0x00,0x36,0x36,0x00,0x00,0x00,
             0x00,0x00,0x00,0x1c,0x1c,0x00,0x00,0x00,
             0x00,0x00,0x00,0x3e,0x3e,0x00,0x00,0x00,
             0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,
             0x00,0x00,0x00,0x1c,0x1c,0x00,0x00,0x00,
             0x00,0x00,0x00,0x08,0x08,0x00,0x00,0x00
            };
            uchar code tab_xuanzhuantiao[]=//旋轉條
            {
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x00,0x0f,0xf0,0x00,0x00,0x00,
             0x00,0x00,0x00,0xf0,0x0f,0x00,0x00,0x00,
             0x00,0x00,0x80,0x70,0x0e,0x01,0x00,0x00,
             0x00,0x80,0x60,0x10,0x08,0x06,0x01,0x00,//
             0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01,//1
             0x40,0x20,0x20,0x10,0x08,0x04,0x04,0x02,
             0x20,0x10,0x10,0x10,0x08,0x08,0x08,0x04,
             0x10,0x10,0x10,0x10,0x08,0x08,0x08,0x08,
             0x08,0x08,0x08,0x08,0x10,0x10,0x10,0x10,
             0x04,0x08,0x08,0x08,0x10,0x10,0x10,0x20,
             0x02,0x04,0x04,0x08,0x10,0x20,0x20,0x40//7
            };
            uchar code flash0__tab[]=
            {
            0X03,0X07,0X06,0X08,0X10,0X20,0X40,0X80,
            0X07,0X07,0X0F,0X1C,0X18,0X20,0X40,0X80,
            0X0F,0X0F,0X1F,0X3F,0X3C,0X78,0X60,0X80,
            0X1F,0X1F,0X3F,0X3F,0X7F,0X7C,0X70,0X80,
            0X3F,0X3F,0X3F,0X7F,0X7F,0X7F,0XF8,0XC0,
            0X7F,0X7F,0X7F,0X7F,0XFF,0XFF,0XFF,0XF0,
            0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF//7
            };
            uchar code tab_xuanzhuantiao2[]=//旋轉條
            {
            0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80,//1
            0X02,0X04,0X08,0X00,0X10,0X20,0X40,0X80,//
            0X04,0X08,0X00,0X10,0X20,0X20,0X40,0X80,//
            0X08,0X10,0X10,0X20,0X20,0X40,0X40,0X80,//
            0X10,0X10,0X20,0X20,0X20,0X40,0X40,0X80,//
            0X20,0X20,0X40,0X40,0X40,0X80,0X80,0X80,//
            0X40,0X40,0X40,0X40,0X80,0X80,0X80,0X80,//
            
            0X80,0X80,0X80,0X80,0X80,0X80,0X80,0X80,//8
            0X80,0X80,0X80,0X80,0X40,0X40,0X40,0X40,//
            0X80,0X80,0X00,0X40,0X40,0X40,0X20,0X20,//10
            0X80,0X80,0X40,0X40,0X20,0X20,0X10,0X10,//
            0X80,0X40,0X40,0X20,0X20,0X10,0X10,0X08,//
            0X80,0X40,0X20,0X20,0X10,0X10,0X08,0X04,//
            0X80,0X40,0X20,0X10,0X08,0X08,0X04,0X02,//
            0X80,0X40,0X20,0X10,0X08,0X04,0X02,0X01,//15
            0X80,0X40,0X20,0X10,0X0C,0X02,0X01,0X00,//16
            0X80,0X40,0X30,0X0C,0X02,0X01,0X00,0X00,//
            0X80,0X60,0X18,0X06,0X01,0X00,0X00,0X00,//18
            0XC0,0X30,0X0E,0X01,0X00,0X00,0X00,0X00,//
            0XE0,0X1C,0X03,0X00,0X00,0X00,0X00,0X00,//20
            0XF0,0X0F,0X00,0X00,0X00,0X00,0X00,0X00,//
            0XFF,0X00,0X00,0X00,0X00,0X00,0X00,0X00,//22
            
            0X0F,0XF0,0X00,0X00,0X00,0X00,0X00,0X00,//23
            0X07,0X38,0XC0,0X00,0X00,0X00,0X00,0X00,
            0X03,0X0C,0X20,0XC0,0X00,0X00,0X00,0X00,
            0X01,0X02,0X0C,0X30,0XC0,0X00,0X00,0X00,
            0X01,0X02,0X04,0X08,0X30,0XC0,0X00,0X00,
            0X01,0X02,0X04,0X08,0X10,0X60,0X80,0X00,
            0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80,
            0X01,0X02,0X04,0X08,0X10,0X20,0X20,0X40,
            0X01,0X02,0X04,0X08,0X08,0X10,0X20,0X20,
            0X01,0X02,0X04,0X04,0X08,0X08,0X10,0X10,
            0X01,0X01,0X02,0X02,0X04,0X04,0X08,0X08,
            0X01,0X01,0X01,0X02,0X02,0X02,0X04,0X04,
            0X01,0X01,0X01,0X01,0X02,0X02,0X02,0X02,
            0X01,0X01,0X01,0X01,0X01,0X01,0X01,0X01,//36
            
            
            0X02,0X02,0X02,0X02,0X01,0X01,0X01,0X01,//37
            0X04,0X04,0X02,0X02,0X02,0X01,0X01,0X01,
            0X08,0X08,0X04,0X04,0X02,0X02,0X01,0X01,
            0X10,0X10,0X08,0X08,0X04,0X04,0X02,0X01,
            0X20,0X10,0X00,0X08,0X08,0X04,0X02,0X01,
            0X40,0X20,0X10,0X08,0X08,0X04,0X02,0X01,
            0X80,0X40,0X20,0X10,0X08,0X04,0X02,0X01,
            0X00,0X80,0X40,0X20,0X18,0X04,0X02,0X01,
            0X00,0X00,0X80,0X40,0X38,0X04,0X02,0X01,
            0X00,0X00,0X00,0X80,0X60,0X1C,0X02,0X01,
            0X00,0X00,0X00,0X00,0X80,0X70,0X0E,0X01,
            0X00,0X00,0X00,0X00,0X00,0XC0,0X3C,0X03,
            0X00,0X00,0X00,0X00,0X00,0X00,0XF0,0X0F,
            0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,//50
            
            0X00,0X00,0X00,0X00,0X00,0X00,0X0F,0XF0,//51
            0X00,0X00,0X00,0X00,0X00,0X03,0X1C,0XE0,
            0X00,0X00,0X00,0X00,0X03,0X0C,0X30,0XC0,
            0X00,0X00,0X00,0X01,0X06,0X18,0X20,0XC0,
            0X00,0X00,0X01,0X02,0X0C,0X30,0X40,0X80,
            0X00,0X01,0X02,0X04,0X18,0X20,0X40,0X80,
            //0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80//57
            };
            uchar code bianxing_table[]={//變形
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
             0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,//1 
            
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
             0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,//2
            
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
             0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,//3
            
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,//4變形開始
            
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,//5
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
             0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
             0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
             0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//6
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
             0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
             0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
             0X00,0X00,0X0F,0X0f,0XF0,0Xf0,0X00,0X00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//7
             
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
             0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
             0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
             0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
             0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
             0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
             0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//9,方體成型
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
             0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
             0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//10
             
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//11
            };
            uchar code y_table[]={//6幀四方塊外軸心旋轉
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1
            
             0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,
             0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
             0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,//2
            
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x03,0x03,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x03,0x03,
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,//3
            
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,//4
            
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,//5
            
             0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,
             0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
             0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
             0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06//6
            };
            uchar code z_table[]=
            {
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1
            
            0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
            0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
            0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,//2
            
            0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
            0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
            0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,//3
            
            0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
            0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
            0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,//4
            
            0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
            0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
            0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,//5
            
            0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,
            0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,
            0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,//6
            };
            uchar code xz_table[]=
            {
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//1
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
            0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//2
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
            0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//3
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
            0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//4
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
            0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//5
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//6
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//7
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
            0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//8
            
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
            0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//9
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
            0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//10
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,
            0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//11
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,//12
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,//13
            
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,//14
            
            0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
            0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
            0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,//15
            
            0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
            0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
            0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,//16
            
            0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
            0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
            0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,//17
            
            0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
            0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
            0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,//18
            
            0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
            0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
            0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,//19
            
            0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
            0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
            0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,//20
            
            0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
            0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
            0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,//21
            
            0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
            0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
            0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,//22
            
            0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
            0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
            0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,//23
            
            
            0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
            0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
            0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,//24
            
            0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
            0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
            0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,//25
            
            0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
            0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
            0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,//26
            };
            uchar code yx_table[]={//Y軸心切換至X軸心變形
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1
            
             0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
             0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
             0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,//2
            
             0xcc,0xcc,0x00,0x00,0x00,0x00,0xcc,0xcc,
             0xcc,0xcc,0x00,0x00,0x00,0x00,0xcc,0xcc,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
             0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,//3
            
             0xd8,0xd8,0x00,0x00,0x00,0x00,0xd8,0xd8,
             0xd8,0xd8,0x00,0x00,0x00,0x00,0xd8,0xd8,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
             0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,//4
            
             0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
             0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
             0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,//5
            
             0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
             0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,
             0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,//6
            
             0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
             0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,//7
            
             0xf6,0xf6,0x00,0x00,0x00,0x00,0xf6,0xf6,
             0xf6,0xf6,0x00,0x00,0x00,0x00,0xf6,0xf6,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8
            
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//9
            
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//10
            
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//11
            
             0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
             0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
             0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//12
            
             0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
             0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//13
            
             0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xff,0xff,//完成
             0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xff,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//14
            
             0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//15
            
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//16
            
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//17
            
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//18
            
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//19
            
             0x00,0xc3,0xc3,0x00,0xc3,0xc3,0xc3,0xc3,
             0x00,0xc3,0xc3,0x00,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//20
            
             0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,//21
            
             0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//22
            
             0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//23
            
             0x00,0x00,0x00,0xc3,0xc3,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//24
            
             0x00,0x00,0xc3,0xc3,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//25
            
             0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
             0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//26
            
            };
            uchar code x_table[]={//四方塊X軸心旋轉
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1
            
             0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//2
            
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//3
            
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
             0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//4
            
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
             0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
             0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//5
            
             0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,
             0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
             0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
             0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//6
            };
            /***************************************************************/
            uchar code tab_rain[]={//rain
            0X00,0X84,0X01,0X00,0X00,0X01,0X02,0X44,
            0X84,0X00,0X24,0X08,0X04,0X20,0X80,0X00,
            0X00,0X20,0X00,0X00,0X20,0X00,0X40,0X00,
            0X00,0X04,0X00,0X40,0X00,0X00,0X08,0X00,
            
            0X40,0X00,0X10,0X00,0X00,0X04,0X04,0X11,
            0X00,0X41,0X00,0X00,0X80,0X00,0X40,0X00,
            0X00,0X00,0X00,0X24,0X01,0X18,0X00,0X00,
            0X22,0X10,0X02,0X00,0X40,0X00,0X02,0X00
            };
            uchar code sin_cube_table[]={//14幀
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0xff,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xff,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0xff,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0xff,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
            
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xff,
             0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0xff,0x00,0x00,0x00,0x00,0xff,
             0x00,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
             0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,
            
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
             0x00,0xff,0x00,0x00,0x00,0x00,0xff,0x00,
             0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
             0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
            };
            uchar code hart_table[]={//2幀心跳
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,
             0x00,0x18,0x3c,0x18,0x00,0x00,0x00,0x00,
             0x00,0x18,0x3c,0x18,0x00,0x00,0x00,0x00,
             0x00,0x3c,0x7e,0x3c,0x18,0x00,0x00,0x00,
             0x00,0x18,0x7e,0x18,0x00,0x00,0x00,0x00,
             0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            
             0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
             0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
             0x00,0x00,0x18,0x7e,0x7e,0x18,0x00,0x00,
             0x00,0x00,0x3c,0x7e,0x7e,0x3c,0x00,0x00,
             0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
             0x00,0x00,0x7e,0xff,0xff,0x7e,0x00,0x00,
             0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
            };
            uchar code szfc_table[]={//數字浮出
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
             0X38,0X64,0X06,0X3E,0X66,0X66,0X24,0X18,//9
             0x00,0x00,0x00,0x00,
             0X3C,0X66,0X66,0X3C,0X66,0X66,0X24,0X18,//8
             0x00,0x00,0x00,0x00,
             0X30,0X30,0X30,0X18,0X0C,0X04,0X46,0X7E,//7
             0x00,0x00,0x00,0x00,
             0X18,0X26,0X66,0X78,0X60,0X66,0X24,0X18,//6
             0x00,0x00,0x00,0x00,
             0X18,0X64,0X46,0X06,0X1C,0X60,0X62,0X7E,//5
             0x00,0x00,0x00,0x00,
             0X0C,0X0C,0X7E,0X68,0X6C,0X2C,0X3C,0X1C,//4
             0x00,0x00,0x00,0x00,
             0x78,0x46,0x06,0x06,0x1c,0x06,0x46,0x3c,//3
             0x00,0x00,0x00,0x00,
             0xfc,0xc0,0x60,0x30,0x18,0xc6,0xc6,0x78,//2
             0x00,0x00,0x00,0x00,
             0x3c,0x18,0x18,0x18,0x18,0x18,0x38,0x18,//1
             0x00,0x00,0x00,0x00,
             0X18,0X24,0X66,0X66,0X66,0X66,0X24,0X18,//0
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
            };
            
            
            /*音柱編碼*/
            uchar code tuku1[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff,0xff};
            uchar code table1[]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff/*0X1C,0X3E,0X7E,0XFC,0XFC,0X7E,0X3E,0X1C*/};
            uchar code table2[]={
            0Xe0,0Xe0,0Xe0,0xe0,0Xe0,0Xe0,0Xe0,0Xe0,
            0X07,0X07,0X07,0X07,0X07,0X07,0X07,0X07
            };
            /*uchar code table2[]={
            0X80,0Xc0,0Xe0,0xf0,0Xf0,0Xe0,0Xc0,0X80,
            0X01,0X03,0X07,0X0f,0X0f,0X07,0X03,0X01
            };*/
            uchar code table3[]={
            0Xf0,0Xe0,0Xc0,0x80,0X00,0X00,0X00,0X00,
            0X03,0X07,0X0e,0x1c,0X38,0X70,0Xe0,0Xc0,
            0X00,0X00,0X00,0X00,0X01,0X03,0X07,0X0f
            };
            uchar code table4[]={
            0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
            0X00,0X00,0X30,0x30,0X00,0X00,0X00,0X00,
            0X00,0X00,0X00,0X00,0X0c,0X0c,0X00,0X00,
            0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
            };
            uchar code table5[]={
            0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
            0X18,0X18,0X00,0x00,0X00,0X00,0X00,0X00,
            0X03,0X03,0X00,0X00,0X00,0X00,0X00,0X00,
            0X00,0X00,0X00,0X03,0X03,0X00,0X00,0X00,
            0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
            };
            uchar code table6[]={
            0x0f,0x0f,0x0f,0x0f,0x00,0x00,0x00,0x00,
            0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
            0X00,0X00,0X00,0xc0,0Xc0,0X00,0X00,0X00,
            0X00,0X00,0X00,0X00,0X00,0X00,0xc0,0Xc0,
            0X00,0X00,0X00,0X00,0X00,0X00,0X18,0X18,
            0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
            };
            uchar code number[]={//數字,滾動字幕使用,從上至下
            0x00,0x40,0x40,0x40,0x40,0x40,0x7E,0x00,/*"L",0*/
            
            0x00,0x7E,0x40,0x7E,0x40,0x40,0x7E,0x00,/*"E",1*/
            
            0x00,0x7C,0x46,0x42,0x42,0x46,0x7C,0x00,/*"D",2*/
            
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",3*/
            
            0x00,0x3C,0x62,0x40,0x40,0x61,0x3E,0x00,/*"C",4*/
            
            0x00,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,/*"U",5*/
            
            0x00,0x7C,0x42,0x7C,0x42,0x41,0x7E,0x00,/*"B",6*/
            
            0x00,0x7E,0x40,0x7E,0x40,0x40,0x7E,0x00,/*"E",7*/
            
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",8*/
            
            0x00,0x42,0x42,0x7E,0x42,0x42,0x42,0x00,/*"H",9*/
            
            0x00,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,/*"U",10*/
            
            0x00,0xC2,0x64,0x38,0x10,0x10,0x10,0x00,/*"Y",11*/
            
            0x00,0x18,0x18,0x24,0x7E,0x42,0x81,0x00,/*"A",12*/
            
            0x00,0x62,0x62,0x52,0x4A,0x46,0x46,0x00,/*"N",13*/
            
            0x00,0x3C,0x62,0x40,0x4E,0x62,0x3E,0x00,/*"G",14*/
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",15*/
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",16*/
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",17*/
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"Y",18*/
             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",19*/
             0x00,0x44,0x44,0x7C,0x44,0x44,0x44,0x00,/*"H",20*/
             0x00,0x44,0x44,0x44,0x44,0x44,0x38,0x00,/*"U",21*/
             0x00,0x82,0x44,0x28,0x10,0x10,0x10,0x00,/*"Y",22*/
             0x00,0x10,0x28,0x28,0x7C,0x44,0x82,0x00,/*"A",23*/
             0x00,0x64,0x64,0x54,0x54,0x4C,0x44,0x00,/*"N",24*/
             0x00,0x78,0xC4,0x80,0x9C,0xC4,0x7C,0x00,/*"G",25*/
             0x00,0x10,0x10,0x10,0x10,0x00,0x10,0x00,/*"!",26*/
             0X38,0X64,0X06,0X3E,0X66,0X66,0X24,0X18,//"9"27
             0X3C,0X66,0X66,0X3C,0X66,0X66,0X24,0X18,//"8"28
             0X30,0X30,0X30,0X18,0X0C,0X04,0X46,0X7E,//"7"29
             0X18,0X26,0X66,0X78,0X60,0X66,0X24,0X18,//"6"30
             0X18,0X64,0X46,0X06,0X1C,0X60,0X62,0X7E,//"5"31
             0X0C,0X0C,0X7E,0X68,0X6C,0X2C,0X3C,0X1C,//"4"32
             0x78,0x46,0x06,0x06,0x1c,0x06,0x46,0x3c,//"3"33
             0xfc,0xc0,0x60,0x30,0x18,0xc6,0xc6,0x78,//"2"34
             0x3c,0x18,0x18,0x18,0x18,0x18,0x38,0x18,//"1"35
             0X18,0X24,0X66,0X66,0X66,0X66,0X24,0X18,//"0"36
            
            //0XCC,0XCC,0X44,0X44,0X22,0X22,0X1f,0X00,
            
             //0XCC,0XCC,0X44,0X44,0X22,0X22,0X1f,0X00,
               0X66,0X66,0X66,0X7E,0X66,0X66,0X3C,0X18,/*"A",37*/
             //0X00,0X99,0X99,0X99,0X99,0X99,0X66,0X00,
             0XC3,0XC7,0XCF,0XDF,0XFB,0XF3,0XE3,0XC3,/*"N",38*/
             //0X03,0X05,0XF9,0X81,0X81,0XF9,0X05,0X03,
              0X7E,0X62,0X62,0X60,0X60,0X60,0X60,0X60/*"L",39*/
            };
            /*音柱編碼*/
            uchar code tuku[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};
            uchar code BRTable[64] ={ 0,32,16,48,8,40,24,56,4,36,20,52,12,44,28,60,2,34,18,50,10,42,26,58,6,38,22,54,14,46,30,62,1,33,17,49,9,41,25,57,5,37,21,53,13,45,29,61,3,35,19,51,11,43,27,59,7,39,23,55,15,47,31,63};
            char code sin_tabb[64] = { 0 ,12 ,25 ,37 ,49 ,60 ,71 ,81 ,90 ,98 ,106 ,112 ,117 ,122 ,125 ,126 ,127 ,126 ,125 ,122 ,117 ,112 ,106 ,98 ,90 ,81 ,71 ,60 ,49 ,37 ,25 ,12 ,0 ,-12 ,-25 ,-37 ,-49 ,-60 ,-71 ,-81 ,-90 ,-98 ,-106 ,-112 ,-117 ,-122 ,-125 ,-126 ,-127 ,-126 ,-125 ,-122 ,-117 ,-112 ,-106 ,-98 ,-90 ,-81 ,-71 ,-60 ,-49 ,-37 ,-25 ,-12  }; 
            char code cos_tabb[64] = {127 ,126 ,125 ,122 ,117 ,112 ,106 ,98 ,90 ,81 ,71 ,60 ,49 ,37 ,25 ,12 ,0 ,-12 ,-25 ,-37 ,-49 ,-60 ,-71 ,-81 ,-90 ,-98 ,-106 ,-112 ,-117 ,-122 ,-125 ,-126 ,-127 ,-126 ,-125 ,-122 ,-117 ,-112 ,-106 ,-98 ,-90 ,-81 ,-71 ,-60 ,-49 ,-37 ,-25 ,-12 ,0 ,12 ,25 ,37 ,49 ,60 ,71 ,81 ,90 ,98 ,106 ,112 ,117 ,122 ,125 ,126 };
            char num;
            char c[6];//用于存儲5個不同頻率的幅值
            char b[6];//用于使音譜柱形顯示的平滑
            char amenu,menu,out;
            int xdata Real[64];//實部 
            int xdata Image[64];//虛部
            void delay(int t)
            {
             int i;
             while(t--)
              for(i=0;i<700;i++);
            }
            void delay1(int t)
            {
             char i;
             while(t--)
              for(i=0;i<20;i++);
            }
            void clc()//全局清屏
            {
             P3=0;
             P2=0xff;
             P0=0;
             P2=0;
            }
            uchar daoxu(uchar x)//一字節倒序
            {
             uchar k=0;
             char i;
             for(i=0;i<8;i++)
             {
              if((x>>(7-i))&0x01)
               k|=0x01<<i;
             }
             return k;
            }
            void key_menu_scan()
            {
             if(!keymenu)
             {
              delay(30);//按鍵驅抖
              if(!keymenu)
              {
               P3=0;
               menu++;
               if(menu==4)
                menu=1;
              }
              while(!keymenu);//釋放判斷
             }
            }
            void key_amenu_scan()
            {
             if(!keyamenu)
             {
              delay(30);//按鍵驅抖
              if(!keyamenu)
              {
               P3=0;
               amenu++;
               if(amenu==7)
                amenu=1;
              }
              while(!keyamenu);//釋放判斷
             }
            }
            void key_out_scan()
            {
             if(!keyout)
             {
              delay(30);//按鍵驅抖
              if(!keyout)
              {
               P3=0;
               if(!out)
                out=1;
               else
                out=0;
              }
              while(!keyout);//釋放判斷
             }
            }
            void fun(uchar *a)//層填充函數
            {
             uchar i,p;
             p=1;
             for(i=0;i<8;i++)
             {
              P2=p;
              P0=a[i];
              P2=0;
              p<<=1;
             }
            }
            /*
            void fun(uchar *a)//層填充函數
            {
             uchar i,p;
             p=0x80;
             for(i=0;i<8;i++)
             {
              P2=p;
              P0=a[i];
              P2=0;
              p>>=1;
             }
            }
            */
            void fun1(uchar *a,uchar d,uchar b,uchar c,uchar e)//滾動字幕數據處理
            {
             char i;
             for(i=0;i<8;i++)
             {
              a[i]=e&0x01;
              e>>=1;
             }
             a[7]|=(c<<1);
             a[6]|=(c&0x80);
             for(i=0;i<6;i++)
             {
              a[5-i]|=((b<<(7-i))&0x80);
             }
             d=daoxu(d);
             a[0]|=((d>>1)&0x7e);
            }
            void zhen(uchar *a,uchar v)//一幀,a是一幀編碼起始地址
            {
             uchar p;
             char i;
             while(v--)
             {
              p=1;
              for(i=0;i<8;i++)
              {
               key_out_scan();
               key_amenu_scan();
               key_menu_scan();
               if(amenu)
                break;
               P3=0;
               fun(a+i*8);
               P3=p;
               delay(2);
               p<<=1;
              }
             } 
            }
            void turn_on(uchar v)
            {
             uchar a[64]={0};
             char i,j;
             a[7]=0x80;
             zhen(a,v);
             for(i=1;i<8;i++)
             {
              a[i*8+7]=0x80;
              zhen(a,v);
             }
             for(i=6;i>=0;i--)
             {
              for(j=0;j<8;j++)
               a[j*8+i]=0x80;
              zhen(a,v);
             } 
             for(i=0;i<64;i++)
              a[i]=0; 
            }
            void H_scan(uchar v)
            { 
             uchar b[64]={0};
             char i,j;
             for(i=0;i<64;i++)
              b[i]=0x80;
             for(i=0;i<7;i++)
             {
              for(j=0;j<64;j++)
               b[j]>>=1;
              zhen(b,v);
             }
            }
            void V_scan(uchar v)
            {
             uchar a[64]={0};
             char i,j;
             for(i=0;i<8;i++)
              a[i]=0xff;
             zhen(a,v);
             for(i=1;i<8;i++)
             {
              for(j=0;j<8;j++)
              {
               a[i*8+j]=0xff;
               a[(i-1)*8+j]=0;
              }
              zhen(a,v);
             }
            }
            void jb0(char num,char v)///////////////////////////////
            {
             char i,k;
             uchar c[64]={0};
             for(i=0;i<64;i++)
              c[i]=0x80;
             zhen(c,v);
             while(num--)
              for(i=0;i<28;i++)
              {
               if(i<7)
                for(k=0;k<8;k++)
                {
                 c[k*8]|=(0x80>>(i+1));
                 c[k*8+7-i]=0;
                }
               else if(i<14)
                for(k=0;k<8;k++)
                {
                 c[k*8+i-6]=0x01;
                 c[k*8]>>=0x01;
                }
               else if(i<21)
                for(k=0;k<8;k++)
                {
                 c[k*8+i-14]=0;
                 c[k*8+7]|=(0x01<<(i-13));
                }
               else if(i<28)
                for(k=0;k<8;k++)
                {
                 c[k*8+27-i]=0x80;
                 c[k*8+7]<<=1;
                }
               zhen(c,v);
              }
             clc();
            }
            void link_pingmian1(char v)
            {
             uchar a[64]={0};
             char i,j;
             for(i=0;i<8;i++)
              for(j=0;j<8;j++)
              {
               a[7*8+j]|=(0x01<<i);
               zhen(a,v);
              }
            }
            void pingmian1(char num,char v)
            {
             char i,k;
             uchar a[64]={0};
             for(i=0;i<8;i++)
              a[7*8+i]=0xff;
             zhen(a,v);
             while(num--)
              for(i=0;i<28;i++)
              {
               if(i<7)
                for(k=0;k<8;k++)
                {
                 a[(6-i)*8+k]=0x01;
                 a[7*8+k]>>=1;
                }
               else if(i<14)
                for(k=0;k<8;k++)
                {
                 a[k]|=0x01<<(i-6);
                 a[(14-i)*8+k]=0;
                }
               else if(i<21)
                for(k=0;k<8;k++)
                {
                 a[(i-13)*8+k]=0x80;
                 a[k]<<=1;
                } 
               else 
                for(k=0;k<8;k++)
                {
                 a[7*8+k]|=0x80>>(i-20);
                 a[(i-21)*8+k]=0;
                }
               zhen(a,v);
              }
             clc();
            }
            void move(uchar *a,char kind,char direction,char length)//length不能為8
            //kind=0 x軸,1 x軸,2 z軸;direction=0,負向,1正向
            {
             char i,j;
             if(kind==0)
             {
              if(direction==1)
               for(i=0;i<64;i++)
                a[i]<<=length;
              else
               for(i=0;i<64;i++)
                a[i]>>=length; 
             }
             else if(kind==1)
             {
              if(direction==1)
               for(j=0;j<8;j++)
               {
                for(i=7;i>=length;i--)
                 a[i+j*8]=a[i-length+j*8];
                for(i=0;i<length;i++)
                 a[i+j*8]=0;   
               } 
              else
               for(j=0;j<8;j++)
               {
                for(i=0;i<length;i++)
                 a[i+j*8]=a[i+length+j*8];
                for(i=(8-length);i<8;i++)
                 a[i+j*8]=0;   
               }   
             }
             else
             {
              if(direction==1)
               for(j=0;j<8;j++)
               {
                for(i=7;i>=length;i--)
                 a[j+i*8]=a[j+(i-length)*8];
                for(i=0;i<length;i++)
                 a[j+i*8]=0;   
               } 
              else
               for(j=0;j<8;j++)
               {
                for(i=0;i<(8-length);i++)
                 a[j+i*8]=a[j+(i+length)*8];
                for(i=(8-length);i<8;i++)
                 a[j+i*8]=0;   
               } 
             }
            }
            void produce_cube(uchar *a,char n)//0<=n<=8
            {
             char i,j;
             for(i=0;i<8;i++)
              for(j=0;j<8;j++)
              {
               if(j<n&&i<n)
                a[j+i*8]=0xff>>(8-n);
               else
                a[j+i*8]=0;
              } 
            }
            void produce_empty(uchar *a,char n)//0<n<=8,注意n不能為0
            {
             char j;
             uchar p;
             for(j=0;j<64;j++)
              a[j]=0;
             p=0xff>>(8-n);
            /************X4列*************/
             a[(n-1)*8+n-1]=p;
             a[(n-1)*8]=p;
             a[0]=p;
             a[n-1]=p;
             for(j=0;j<n;j++)
             {
              p=(0x01|(0x01<<(n-1)));
            /************豎直4列*************/
              a[j*8]|=p;
              a[j*8+n-1]|=p;
            /************Y4列*************/
              a[j]|=p;
              a[(n-1)*8+j]|=p;
             }
            }
            void cube(char empty,char kind,char v)
            {
             uchar a[64]={0};
             char i;
             for(i=1;i<=8;i++)//生成
             {
              if(empty==0)
               produce_cube(a,i);
              else
               produce_empty(a,i);
              if(kind==0)
               {;}
              else if(kind==1)
               move(a,1,1,8-i);
              else if(kind==2)
              {
               move(a,1,1,8-i);
               move(a,0,1,8-i);
              }
              else
               move(a,0,1,8-i);
              zhen(a,v);
             }
             for(i=7;i>0;i--)//退出
             {
              if(empty==0)
               produce_cube(a,i);
              else
               produce_empty(a,i);
              if(kind==0)
              {
               move(a,1,1,8-i);
               move(a,0,1,8-i);
              }
              else if(kind==1)
               move(a,0,1,8-i);
              else if(kind==2)
               {;}
              else
               move(a,1,1,8-i);    
              zhen(a,v);
             }
            }
            /***************************************************************************/
            void yinchu(uchar *table,char n,char v)
            {
            /****************************
            n為幀數
            ******************************/
             char i,j,k;
             uchar a[64]={0},p;
             for(k=0;k<n;k++)
             {
              for(i=0;i<8;i++)
              {
               p=0xff;
               for(j=0;j<64;j++)
               {
                a[j]=(table[j+k*64]|(0x80>>i))&(p<<(7-i));
               }
               zhen(a,v); 
              }
              zhen(table+k*64,50);
             }
            
            }
            void rain(char menu,char num,char v)
            {//menu=0,up;menu=1,down
             uchar a[64]={0};
             char i,j;
             if(menu==0)
             {
              for(i=0;i<8;i++)
               a[i]=tab_rain[i];
              zhen(a,v);
              for(i=1;i<8;i++)
              {
               move(a,2,1,1);
               for(j=0;j<8;j++)
                a[j]=tab_rain[i*8+j];
               zhen(a,v);
              } 
              while(num--)
              { 
               for(i=0;i<8;i++)
               {
                move(a,2,1,1);
                for(j=0;j<8;j++)
                 a[j]=tab_rain[i*8+j];
                zhen(a,v);
               }
              }
             }
             else
             {
              for(i=0;i<8;i++)
               a[7*8+i]=tab_rain[i];
              zhen(a,v);
              for(i=1;i<8;i++)
              {
               move(a,2,0,1);
               for(j=0;j<8;j++)
                a[7*8+j]=tab_rain[i*8+j];
               zhen(a,v);
              }
              while(num--)
              { 
               for(i=0;i<8;i++)
               {
                move(a,2,0,1);
                for(j=0;j<8;j++)
                 a[j+7*8]=tab_rain[i*8+j];
                zhen(a,v);
               }    
              }
             }
            }
            void LED()
            {
             char i;
             uchar p=0x01;
             for(i=0;i<8;i++)
             {
              P2=p;
              delay1(1);
              P0=0xff;
              delay1(1);
              p<<=1;
             }
             P2=0;
             while(!out)
             {
              key_out_scan();
              key_amenu_scan();
              P3=0xff;
              delay1(amenu*30);
              P3=0;
              delay1((6-amenu)*30);
             }
             P3=0;
            }
            void pc1(char num,char v)
            {
             uchar a[64]={0};
             char i,j;
             while(num--)
             {
              for(i=1;i<8;i++)
               a[i]=0xff;
              zhen(a,v);
              for(i=1;i<8;i++)
              {
               move(a,2,1,1);
               for(j=0;j<8;j++)
                a[j]=0xff;
               zhen(a,v);
              }
              for(i=0;i<8;i++)
              {
               if(num==0&&i==7)
                continue;
               move(a,2,1,1);
               zhen(a,v);
              }
             }
             for(i=0;i<7;i++)
             {
              move(a,2,0,1);
              zhen(a,v+5);
             }
            }
            void link(char v)
            {
            /****************************
            旋轉銜接
            ******************************/
             char i,j,k;
             uchar a[64]={0};
             for(i=0;i<64;i++)
              a[i]=0x80;
             zhen(a,3);
             for(i=0;i<8;i++)
             {
              for(j=0;j<8;j++)
              {
               if(i<7)
                a[j*8+7-i]&=0x7f;
               a[j*8+i]|=(0x80>>i);
              }
              zhen(a,v);
             }
             for(i=0;i<6;i++)
             {
              for(j=0;j<8;j++)
               for(k=0;k<8;k++)
                a[j*8+k]=tab_xuanzhuantiao[(i+8)*8+k];
              zhen(a,3);
             }
            }
            void leitu(uchar *b,char num,char v)//V>1
            {
             uchar a[64]={0},p;
             char i,j,k,m;
             for(m=0;m<num;m++)
             {
              for(i=0;i<8;i++)
               for(k=0;k<8;k++)
                for(j=0;j<8;j++)
                {
                 p=b[m*64+i*8+k]&(0x01<<j);
                 if(p)
                 {
                  a[i*8+k]|=p;
                  zhen(a,v);
                 }
                }
              zhen(a,60);
              for(j=0;j<64;j++)
              {
               if(!a[j])
                continue;
               a[j]=0;
               zhen(a,v-1);
              }
              delay(30);
             }
            }
            void fn(char v)
            {
             uchar a[64]={0};
             int i;
             for(i=0;i<128;i++)//點
             {
              a[tab00[i]]=(0x01<<tab01[i]);
              zhen(a,v);
              a[tab00[i]]=0;
             }
             for(i=0;i<128;i++)//8點
             {
              a[tab10[i]]|=(0x01<<tab01[i]);
              if(i>=8)
               a[tab10[i-8]]^=(0x01<<tab01[i-8]);
              zhen(a,v);
             }
             a[tab00[0]]|=(0x01<<tab01[0]);
             a[0]=0x80;
             zhen(a,v);
             for(i=1;i<128;i++)//線
             {
              if(i<8)
               a[i-1]=0;
              a[tab00[i]]|=(0x01<<tab01[i]);
              zhen(a,v);
             }
             zhen(a,120);
             for(i=0;i<128;i++)//線
             {
              a[tab10[i]]^=(0x01<<tab01[i]);
              zhen(a,v);
             }
            }
            void xuanzhuantiao(char kind,char num,char v)//空心旋轉,kind=1實心,否則空心
            {
             uchar a[64]={0};
             char i,j,k;
             while(num--)
             {
              for(i=0;i<14;i++)
              {
               for(j=0;j<8;j++)
               {
                for(k=0;k<8;k++)
                {
                 if(k>1&&k<6&&j>1&&j<6&&kind!=1)
                  a[k+j*8]=tab_xuanzhuantiao[i*8+k]&0xc3;
                 else
                  a[k+j*8]=tab_xuanzhuantiao[i*8+k];
                }
               }
               zhen(a,v);
              }
             }
            }
            
            void qumianxuanzhuan(char kind,char num,char v)//曲面旋轉
            {
             uchar a[64]={0};
             char i,j,k;
             for(j=0;j<8;j++)
              for(i=0;i<8;i++)
               a[i+j*8]=tab_xuanzhuantiao[i];
             zhen(a,v);
             if(kind==1)
             {
              for(j=1;j<8;j++)//順時針初形變換
              {
               for(i=0;i<j;i++)
                for(k=0;k<8;k++)
                 a[k+i*8]=tab_xuanzhuantiao[(j-i)*8+k];
               zhen(a,v);
              }
              for(i=8;i<14;i++)
              {
               move(a,2,1,1);
               for(j=0;j<8;j++)
                a[j]=tab_xuanzhuantiao[i*8+j];
               zhen(a,v);
              }
             }
             else
             {
              for(j=1;j<8;j++)//逆時針初形變換
              {
               for(i=0;i<j;i++)
                for(k=0;k<8;k++)
                 a[k+i*8]=tab_xuanzhuantiao[(14-j+i)*8+k];
               zhen(a,v);
              }
              for(i=7;i>=0;i--)
              {
               move(a,2,1,1);
               for(j=0;j<8;j++)
                a[j]=tab_xuanzhuantiao[i*8+j];
               zhen(a,v);
              }
             }
            
             while(num--)//主循環
             {
              if(kind==1)
               for(i=0;i<14;i++)
               {
                move(a,2,1,1);
                for(j=0;j<8;j++)
                 a[j]=tab_xuanzhuantiao[i*8+j];
                zhen(a,v);
               }
              else
               for(i=13;i>=0;i--)
               {
                move(a,2,1,1);    
                for(j=0;j<8;j++)
                 a[j]=tab_xuanzhuantiao[i*8+j];
                zhen(a,v);
               }
             }
             if(kind==1)
              for(j=0;j<7;j++)
              {
               for(i=7;i>=j;i--)
               {
                if(i>j)
                 for(k=0;k<8;k++)
                  a[k+i*8]=tab_xuanzhuantiao[(14-i+j)*8+k];
                else
                 for(k=0;k<8;k++)
                  a[k+i*8]=tab_xuanzhuantiao[k];
               }
               zhen(a,v);
              }
             else
              for(j=1;j<7;j++)
              {
               for(i=7;i>=j;i--)
               {
                if(i>j)
                 for(k=0;k<8;k++)
                  a[k+i*8]=tab_xuanzhuantiao[(i-j)*8+k];
                else
                 for(k=0;k<8;k++)
                  a[k+i*8]=tab_xuanzhuantiao[k];
               }
               zhen(a,v);
              }
            }
            void qumianxuanzhuan2(char num,char v)//曲面旋轉
            {
             uchar a[64]={0};
             char i,j,k;
             for(j=0;j<8;j++)
              for(i=0;i<8;i++)
               a[i+j*8]=tab_xuanzhuantiao[i];
             zhen(a,v);
             for(j=1;j<8;j++)
             {
              for(i=0;i<j;i++)
               for(k=0;k<8;k++)
                a[k+i*8]=tab_xuanzhuantiao[(14-j+i)*8+k];
              zhen(a,v);
             }
             while(num--)
             {
              for(j=1;j<8;j++)
              {
               move(a,2,1,1);
               for(i=0;i<j;i++)
               {
                for(k=0;k<8;k++)
                {
                 if(j!=7|i!=0)
                  a[i*8+k]=tab_xuanzhuantiao[k+(j+7-i)*8];
                 else
                  a[k]=tab_xuanzhuantiao[k];
                }
               }
               zhen(a,v);
              }
              for(j=1;j<8;j++)
              {
               move(a,2,1,1);
               for(i=0;i<j;i++)
               {
                for(k=0;k<8;k++)
                 a[i*8+k]=tab_xuanzhuantiao[k+(14-j+i)*8];
               }
               zhen(a,v);
              }
             }
            }
            void W_scan(uchar v)
            {
             uchar a[64]={0};
             char i,j;
             for(i=0;i<8;i++)
              a[i*8+7]=0xff;
             zhen(a,v);
             for(i=6;i>=0;i--)
             {
              for(j=0;j<8;j++)
              {
               a[j*8+i]=0xff;
               a[j*8+i+1]=0;
              }
              zhen(a,v);
             }
             clc();
            }
            void zimu(uchar *x,char n,char v,int num)//滾動字幕,num表示循環次數,v表示滾動速度,n字符個數
            {
             char i,j,k;
             uchar xdata a[64]={0},temp0[8],temp1[8],temp2[8],temp3[8],temp[8];
             for(i=0;i<8;i++)
             {
              temp0[i]=0;
              temp1[i]=0;
              temp2[i]=0;
              temp3[i]=0;
             }
             while(num--)
              for(j=0;j<n;j++)//滾動
              {
               for(k=7;k>=0;k--)//讀取數據
                temp[7-k]=x[j*8+k];
               for(k=0;k<8;k++)//移動8位
               {
                for(i=0;i<8;i++)
                {
                 temp0[i]=(temp0[i]<<1)|(temp1[i]>>7);
                 temp1[i]=(temp1[i]<<1)|(temp2[i]>>7);
                 temp2[i]=(temp2[i]<<1)|(temp3[i]>>7);
                 temp3[i]=(temp3[i]<<1)|(temp[i]>>7);
                 temp[i]<<=1;
                 fun1(a+i*8,temp0[i],temp1[i],temp2[i],temp3[i]);
                }
                zhen(a,v);
               }
              }
            }
            void hy(uchar *tab,char v)
            {
             uchar a[64]={0};
             char i,j;
             for(i=0;i<8;i++)
              a[i*8]=tab[i];
             zhen(a,v);
             for(i=1;i<8;i++)
             {
                 for(j=0;j<8;j++)
                  a[i+j*8]=a[i-1+j*8];
                 zhen(a,v);
             } 
                    for(i=0;i<7;i++)
             {
                 for(j=0;j<8;j++)
                  a[i+j*8]=0;
                 zhen(a,v);
             }
                    zhen(a,23); 
            }
            void W_side(uchar *tab,char num,char v)
            {
             uchar a[64]={0};
             int i,j;
             for(j=0;j<num;j++)
             {
              if(amenu)
               break;
              for(i=0;i<8;i++)
               a[i*8+7]=tab[j*8+i]; 
              zhen(a,v);
             }
            }
            void print(uchar *a,char m)//m=0中空顯示,m=1實心顯示
            {
             uchar p;
             char i,j,k;
             uchar b[64]={0};
             for(i=0;i<8;i++)
             {
              b[7*8+i]=0xff;
             } 
             for(i=0;i<8;i++)//行切換
             {
              for(j=0;j<8;j++)//點移動
              {
               p=a[i]&(0x01<<j);
               if(p)
               {
                for(k=6;k>0;k--)
                {
                 if(m==1&&k==6)
                 {;}
                 else
                  b[(k+1)*8+7-i]&=(~p);
                 b[k*8+7-i]|=(0x01<<j);
                 zhen(b,1);
                }
                b[1*8+7-i]=0;
                b[7-i]|=p;
                zhen(b,1);
               }
               b[7-i]|=p;
              }
             }
             zhen(b,40);
             b[0]=0;
             for(j=7;j>0;j--)
             {
              for(i=7;i>0;i--)
              {
               b[i]=b[i-1];
            
              }
               zhen(b,5);  
             }
             clc();
            }
            void water1(char x,char y,char v)
            {
             uchar a[64]={0};
             char i,r;
             a[7*8+y]=0x01<<x;
             zhen(a,v);
             for(i=6;i>=0;i--)
             {
              a[i*8+y]=a[(i+1)*8+y];
              a[(i+1)*8+y]=0;
              zhen(a,v);
             }//下落
             for(r=0;r<7;r++)
             {
              for(i=0;i<8;i++)
               a[i]=tab_water[r*16+7-y+i]>>(7-x);
              zhen(a,v+1);
             }//擴散
            }
            void water2(char x1,char y1,char x2,char y2,char v)
            {
             uchar a[64]={0};
             char i,r;
             a[7*8+y1]=0x01<<x1;
             zhen(a,v);
             for(i=6;i>=0;i--)
             {
              move(a,2,0,1);
              if(i==5)
              {
               a[7*8+y2]=0x01<<x2;   
              }
              zhen(a,v);
             }
             for(r=0;r<9;r++)
             {
              if(r<2)
               move(a,2,0,1);
              else
               for(i=0;i<8;i++)
                a[i]=tab_water[(r-2)*16+7-y2+i]>>(7-x2);  
              if(r<7)
               for(i=0;i<8;i++)
                a[i]|=(tab_water[r*16+7-y1+i]>>(7-x1));
              if(r==1)
               a[y2]|=0x01<<x2;
              zhen(a,v);
             }
            }
            void water3(char x1,char y1,char x2,char y2,char x3,char y3,char v)
            {//3水滴
             uchar a[64]={0};
             char i,r;
             a[7*8+y1]=0x01<<x1;
             zhen(a,v);
             for(i=6;i>=0;i--)
             {
              move(a,2,0,1);
              if(i==5)//第二點
               a[7*8+y2]=0x01<<x2; 
              if(i==3)
               a[7*8+y3]=0x01<<x3; //第三點  
              zhen(a,v);
             }
             for(r=0;r<11;r++)
             {
              if(r<4)
               move(a,2,0,1);
              if(r<11&&r>=4)
               for(i=0;i<8;i++)
                a[i]=tab_water[(r-4)*16+7-y3+i]>>(7-x3);
              if(r<9&&r>=2)
               for(i=0;i<8;i++)
                a[i]|=tab_water[(r-2)*16+7-y2+i]>>(7-x2);  
              if(r<7)
               for(i=0;i<8;i++)
                a[i]|=(tab_water[r*16+7-y1+i]>>(7-x1));
              if(r==1)
               a[y2]|=0x01<<x2;
              if(r==3)
               a[y3]|=0x01<<x3;
              zhen(a,v);
             }
            }
            void xuanzhuantiao2(char num,char v)//空心旋轉,kind=1實心,否則空心
            {
             uchar a[64]={0};
             char i,j,k;
             while(num--)
              for(i=0;i<56;i++)
              {
               for(j=0;j<8;j++)
                for(k=0;k<8;k++)
                 a[j*8+k]=tab_xuanzhuantiao2[i*8+k];
               zhen(a,v);
              }
            }
            void flash0(char v)//條狀升降
            {
              char i,j,k;
              uchar a[64]={0};
              for(i=7;i>=0;i--)
              {
               a[i]=0x01<<i;
               zhen(a,v+5);
              }
              for(i=0;i<7;i++)
              {
               for(j=0;j<8;j++)
                a[j]=flash0__tab[i*8+j];
               zhen(a,v+5);
              }
              for(i=0;i<7;i++)
              {
               move(a,2,1,1);
               zhen(a,v+5);
              }
            /*  for(i=0;i<64;i++)
              {
               if(i>55)
                a[i]=0xff;
               else
                a[i]=0;
              }*/
              zhen(a,20);
              for(i=7;i>=0;i--)//1
               for(j=6;j>=0;j--)
               {
                a[i+j*8]=0xff;
                a[i+(j+1)*8]=0;
                zhen(a,v);
               }
              zhen(a,27);
              for(i=7;i>=0;i--)//2
               for(j=1;j<8;j++)
               {
                a[i+j*8]=0xff;
                a[i+(j-1)*8]=0;
                zhen(a,v);
               }
              zhen(a,27);
              for(i=7;i>=0;i--)//3
               for(k=6;k>=0;k--)
               {
                for(j=0;j<8;j++)
                {
                 if(k==0)
                  a[j+k*8]|=(0x80>>(7-i));
                 else
                  a[j+k*8]=(0x80>>(7-i));
                 a[j+(k+1)*8]^=(0x80>>(7-i));
                }
                zhen(a,v);
               }
              zhen(a,27);
              for(i=7;i>=0;i--)//4
               for(k=1;k<8;k++)
               {
                for(j=0;j<8;j++)
                {
                 if(k==7)
                  a[j+k*8]|=(0x80>>(7-i));
                 else
                  a[j+k*8]=(0x80>>(7-i));
                 a[j+(k-1)*8]^=(0x80>>(7-i));
                }
                zhen(a,v);
               }
              zhen(a,27);
            }
            void donghua(uchar *tab,uchar num,uchar n,char v)
            {
             char i;
             while(n--)
             {
              for(i=0;i<num;i++)//清空
              {
               zhen(tab+i*64,v);
              }
             }
            }
            void denghuo(char v)
            {
             uchar a[64];
             char i,j,k;
             for(k=0;k<8;k++)
              for(i=0;i<8;i++)
               for(j=0;j<8;j++)
               {
                a[tab_mian[i]*8+tab_xian[j]]|=(0x01<<tab_dian[(i+j)*8+k]);
                zhen(a,v);
               }
              zhen(a,90);
             for(k=0;k<8;k++)
              for(i=0;i<8;i++)
               for(j=0;j<8;j++)
               {
                a[tab_mian[i]*8+tab_xian[j]]^=(0x01<<tab_dian[(i+j)*8+k]);
                zhen(a,v);
               }
            }
            /***************************************/
            void xzcube()
            {
              char i;
              donghua(y_table,6,8,8);
              for(i=0;i<26;i++)
              {
               if(i==12||i==13||i==14)
                zhen(yx_table+i*64,30);
               else
                zhen(yx_table+i*64,14);
              }
              donghua(x_table,6,8,8);
              for(i=0;i<26;i++)
              {
               if(i==12||i==13||i==14)
                zhen(xz_table+i*64,30);
               else
                zhen(xz_table+i*64,14);
              }
              donghua(z_table,6,8,8);
            }
            void szfc0(char v)//數字上浮
            {
             char i,j;
             uchar a[64];
             for(i=0;i<64;i++)
             {
              a[i]=0;
             }
             for(j=124;j>=0;j--)
             {
              for(i=7;i>=0;i--)
              {
               a[i*8+3]=szfc_table[j+i];
               a[i*8+4]=szfc_table[j+i];
              }
              zhen(a,v);
             }
            }
            void shandian(char v)
            {
              char i,j;
              uchar a[64];
              for(i=0;i<64;i++)
               a[i]=tab_shandian[64*21+i];
              for(i=0;i<22;i++)
               zhen(tab_shandian+64*i,v);
              for(i=0;i<22;i++)
              {
               for(j=0;j<64;j++)
                a[j]=a[j]&(~tab_shandian[64*i+j]);
               zhen(a,v);
              }
            }
            void cut()
            {
             uchar a[64]={0};
             char i;
             for(i=0;i<4;i++)
             {
              a[i*8+7]=0xff;
              a[(7-i)*8+7]=0xff;
              zhen(a,8);
             }
             zhen(a,30);
             for(i=3;i>=0;i--)
             {
              a[i*8+7]=0;
              a[(7-i)*8+7]=0;
              zhen(a,8);
             }
            }
            void shensuo(uchar v)
            {
             char i,j;
             uchar a[64]={0};
             for(i=0;i<64;i++)
              a[i]=0xff;
             for(i=0;i<7;i++)
             {
              move(a,0,0,1);
              zhen(a,v);
             }
             for(i=0;i<7;i++)
             {
              move(a,0,1,1);
              for(j=0;j<64;j++)
               a[j]|=0x01;
              zhen(a,v);
             }
             for(i=0;i<7;i++)
             {
              move(a,2,0,1);
              zhen(a,v);
             }
             for(i=0;i<7;i++)
             {
              move(a,2,1,1);
              for(j=0;j<8;j++)
               a[j]|=0xff;
              zhen(a,v);
             }
             for(i=7;i>0;i--)
             {
              for(j=0;j<8;j++)
               a[j*8+i]=0;
              zhen(a,v);
             }
             for(i=1;i<8;i++)
             {
              for(j=0;j<8;j++)
               a[j*8+i]|=0xff;
              zhen(a,v);
             }
            }
            void linkpc1(char v)
            {
             uchar i,a[64]={0};
             for(i=0;i<7;i++)
              a[7*8+i]=0xff;
             for(i=0;i<8;i++)
             {
              move(a,2,0,1);
              zhen(a,v);
             }
            }
            void link00()
            {
             uchar a[64]={0};
             char i;
             for(i=10;i>7;i--)
             {
              zhen(bianxing_table+i*64,70);
             }
             produce_cube(a,6);
             move(a,1,1,1);
             move(a,0,1,1);
             zhen(a,110);
             produce_cube(a,8);
             zhen(a,110);
            }
            void link_jb0(char v)
            {
             uchar a[64]={0};
             char i;
             for(i=0;i<64;i++)
             {
              a[i]=0x80;
              zhen(a,v);
             }
            }
            int STC_ADC()
            {
              uchar i;
                ADC_RES=0;
                ADC_RESL=0;
              ADC_CONTR=0x88;
              i=3;
                while(i--);
                while(1)                      
                {
                   if(ADC_CONTR&0x10)       
                break;
                }
                ADC_CONTR=0x80;
              return(ADC_RESL+ADC_RES<<2);
            }
            short sqrt_16( unsigned long M)   
            {
                unsigned int N,i;
                unsigned long tmp,ttp; 
                if(M==0)             
                    return 0;
                N=0;
                tmp=(M>>30);        
                M<<=2;
                if(tmp>1)            
                {
                    N++;               
                    tmp-=N;
                }
                for(i=15;i>0;i--)   
                {
                    N<<=1;           
                    tmp<<=2;
                    tmp+=(M>>30);  
                    ttp=N;
                    ttp=(ttp<<1)+1;
                    M<<=2;
                    if(tmp>=ttp)    
                    {
                        tmp-=ttp;
                        N++;
                    }       
                }
                return N;
            }
            void FFT()
            {
             int xdata i,bb,j,k,p;
             int max,a[6];
             int xdata TR,TI,temp;
               for(i=0; i<64;i++)
             {
                  Real[BRTable[i]]=STC_ADC();
                  Image[i]=0;
             }
               for(i=1;i<=6;i++)                          
               { 
                  bb=1;
                  bb<<=(i-1);                                      
                  for(j=0;j<=bb-1;j++)                            
                  { 
                     p=1;
                     p<<=(6-i);            
                     p=p*j;
                     for(k=j;k<64;k=k+2*bb)               
                     { 
                  key_amenu_scan();    
                key_out_scan();
                        TR = Real[k]; 
                TI = Image[k];
                temp=Real[k+bb];
                        Real[k]=Real[k]+((Real[k+bb]*cos_tabb[p])>>7)+((Image[k+bb]*sin_tabb[p])>>7);
                        Image[k]=Image[k]-((Real[k+bb]*sin_tabb[p])>>7)+((Image[k+bb]*cos_tabb[p])>>7);
                        Real[k+bb]=TR-((Real[k+bb]*cos_tabb[p])>>7)-((Image[k+bb]*sin_tabb[p])>>7);
                        Image[k+bb]=TI+((temp*sin_tabb[p])>>7)-((Image[k+bb]*cos_tabb[p])>>7); 
                        Real[k]>>=1;             
                        Image[k]>>=1; 
                        Real[k+bb]>>=1;                 
                        Image[k+bb]>>=1; 
                     }  
                  }
               }
             max=0;
             for(i=0;i<6;i++)
             {
                a[i]=sqrt_16((Real[i+1]*Real[i+1]+Image[i+1]*Image[i+1])>>1);
                if(a[i]<2 )     
                   a[i]=0;
                else
                   a[i]-=2;
              if(max<a[i])
               max=a[i];
             }
             if(max>7)
             {
              max/=7;
              for(i=0;i<6;i++)
              {
               a[i]/=max;
              }
             }
             for(i=0;i<6;i++)
              c[i]=a[i];
            }
            void disp() interrupt 1
            {
             TR0=0;
             TH0=(65536-2500)/256;
             TL0=(65536-2500)%256;
             if(num>=(amenu-1))
              num=0;
             else
              num++;
             if(b[num]<c[num])
              b[num]++;
             if(b[num]>c[num])
              b[num]--;
             if(b[num]>8)
              b[num]=8;
             if(amenu==1)
              fun(table1+num*8);
             else if(amenu==2)
              fun(table2+num*8);
             else if(amenu==3)
              fun(table3+num*8);
             else if(amenu==4)
              fun(table4+num*8);
             else if(amenu==5)
              fun(table5+num*8);
             else
              fun(table6+num*8); 
             P3=tuku1[b[num]];
             TR0=1;
            }
            /**********初始化函數*****************/
            void init()
            {
             /***********I/O口初始化*************/
             P1M1=1;  //p1.0口高阻輸入
             P1ASF=1; 
             P3M0=0xff;  //P3口推挽輸出
             P2M0=0xff;
             P0M0=0xff;
             P4SW = 0x31;
             TMOD=0x01;
             TH0=(65536-4000)/256; 
             TL0=(65536-4000)%256;
             EA=1;  
             ET0=1; 
             TR0=0;  
               menu=0;
             out=0;
             amenu=0;
             num=0;
            }
            /*************主函數******************/
            void main()
            {
             int i,j;
             char go;
             delay(800);
             init(); //初始化函數
            ////////////////////////呼吸燈
             P2=0xff;
             P0=0;
             P2=0x80;
             P3=1;
             while(!menu)
             {
              for(i=0;i<400;i++)
              {
               key_menu_scan();
               if(menu)
                break;
               P0=0x80;
               delay1(i);
               P0=0;
               delay1(400-i);
               if(i<200)
               {
                j=2;
                while(j--)
                {
                 P0=0x80;
                 delay1(i);
                 P0=0;
                 delay1(400-i);
                }
               }
              }
              for(i=0;i<401;i++)
              {
               if(menu)
                break; 
               key_menu_scan();
               P0=0x80;
               delay1(400-i);
               P0=0;
               delay1(i);
               if(i>200)
               {
                j=2;
                while(j--)
                {
                 P0=0x80;
                 delay1(400-i);
                 P0=0;
                 delay1(i);
                }
               }
              }
             }
             P3M0=0x00;
            ///////////////////////////開機掃描
             turn_on(10);
             H_scan(20);
             V_scan(20);
             W_scan(20);
            /////////////////主菜單選項
             while(1)
             {
              hy(number+37*8,2);
              while(!amenu)
              {
               W_side(number+(36+menu)*8,1,45);
              }
              switch(menu){
              case 1://音譜顯示
               delay(400);
               while(!out)
               {
                TR0=1;
                FFT();
               } 
               TR0=0;
               break;
              case 2://動畫顯示
               delay(400);
               amenu=0;//menu=1;
               go=1;
               cut();
               while(go)
               {
                for(i=0;i<10;i++)
                 hy(number+27*8+i*8,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                zimu(number,19,12,1);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                fn(4);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                out=0;
                flash0(2);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                linkpc1(10);
                pc1(4,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                leitu(yc_table,5,2); 
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                denghuo(3);
                if(out==1)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                water1(1,2,10);water1(2,4,10);
                water1(4,3,10);water1(7,1,10);
                water1(5,6,10);   
                water2(0,2,7,1,9);
                water2(2,4,7,7,9);
                water2(4,7,7,1,9);
                water2(3,6,7,7,9);
                water2(4,1,6,6,9);
                water2(7,3,1,2,9);
                water3(0,4,7,4,5,1,9);
                water3(7,7,0,0,0,7,9);
                water3(0,6,6,6,5,1,9);
                water3(6,7,0,0,2,2,9);
                water3(3,3,6,6,2,2,9);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                clc();
                link_pingmian1(1);
                pingmian1(8,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                for(i=0;i<7;i++)
                 print(tab_print+i*8,1);
                for(i=7;i<11;i++)
                 print(tab_print+i*8,0);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                clc();
                link_jb0(1);
                jb0(10,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                yinchu(yc_table,5,9);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                clc();
                link_jb0(1);
                jb0(10,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                link(9);
                xuanzhuantiao(1,8,4);
                xuanzhuantiao(0,8,4);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                xuanzhuantiao2(3,3);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                qumianxuanzhuan(1,10,4);
                qumianxuanzhuan(0,10,4);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                qumianxuanzhuan2(13,4);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                xuanzhuantiao(1,4,4);
                xuanzhuantiao(1,3,5);
                xuanzhuantiao(1,2,6);
                xuanzhuantiao(1,1,7);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                donghua(bianxing_table,11,1,24);
                xzcube();
                donghua(y_table,6,5,5);
                donghua(x_table,6,5,5);
                donghua(z_table,6,5,5);
                link00();
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                shensuo(5);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                donghua(sin_cube_table,14,22,5);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                for(i=0;i<3;i++)
                 for(j=0;j<3;j++)
                  cube(0,j,6);
                for(i=0;i<3;i++)
                 for(j=0;j<3;j++)
                  cube(1,j,6);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;   
               while(go)
               {
                donghua(hart_table,2,10,32);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                for(i=2;i>0;i--)
                  shandian(i);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                szfc0(10);
                if(out)
                 go=1;
                else
                 go=0;
               }
               go=1;
               while(go)
               {
                rain(1,10,9);
                rain(0,10,9);
                if(out)
                 go=1;
                else
                 go=0;
               }
               break;
              case 3://夜燈模式
               delay(200);
               LED();break;
              }
              out=0;
              amenu=0;
              menu=1;
             }
            }
            
            發表評論】【告訴好友】【收藏此文】【關閉窗口

            文章評論

            相關文章

            香港马会全年资枓大全