现在梦幻分解90-120装备用多少分解符 多少体力 最多最少给多少吸附石

猫猫狗狗 猫猫狗狗
回答
  • 是我呀 是我呀

    展开全部#include
    **it speaker=p1^2;unsigned char timer0h,timer0l,time;生日歌
    code unsigned char sszymmh[]={5,1,1,5,1,1,6,1,2,5,1,2,1,2,2,7,1,4,
    5,1,1,5,1,1,6,1,2,5,1,2,2,2,2,1,2,4,
    5,1,1,5,1,1,5,2,2,3,2,2,1,2,2,7,1,2,6,1,2,
    4,2,1,4,2,1,3,2,2,1,2,2,2,2,2,1,2,4};音阶频率表 高八位
    code unsigned char freqh[]={
    0xf2,0xf3,0xf5,0xf5,0xf6,0xf7,0xf8,
    0xf9,0xf9,0xfa,0xfa,0xfb,0xfb,0xfc,0xfc,/1,2,3,4,5,6,7,8,i
    0xfc,0xfd,0xfd,0xfd,0xfd,0xfe,
    0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,
    };音阶频率表 低八位
    code unsigned char freql[]={
    0x42,0xc1,0x17,0xb6,0xd0,0xd1,0xb6,
    0x21,0xe1,0x8c,0xd8,0x68,0xe9,0x5b,0x8f,/1,2,3,4,5,6,7,8,i
    0xee,0x44,0x6b,0xb4,0xf4,0x2d,
    0x47,0x77,0xa2,0xb6,0xda,0xfa,0x16,
    };void delay(unsigned char t)
    {
    unsigned char t1;unsigned long t2;for(t1=0;t1;t1+)
    {
    for(t2=0;t2;t2+)
    {
    }
    }
    tr0=0;}
    void t0int()interrupt 1
    {
    tr0=0;speaker=!speaker;th0=timer0h;tl0=timer0l;tr0=1;}
    void song()
    {
    th0=timer0h;tl0=timer0l;tr0=1;delay(time);}
    void main(void)
    {
    unsigned char k,i;tmod=1;置ct0定时工作方式1
    ea=1;et0=1;ie=0x82/cpu开中断,ct0开中断
    while(1)
    {
    i=0;while(i){/音乐数组长度,唱完从头再来
    k=sszymmh[i]+7*sszymmh[i+1]-1;timer0h=freqh[k];timer0l=freql[k];time=sszymmh[i+2];i=i+3;song();}
    }
    }

类似问答
精品推荐

友情链接

友链互换QQ:

谷财 备案编号:蜀ICP备11019336号-3商务合作:235-677-2621

Copyright 2009-2020 Chengdu Sanzilewan Technology Co.,Ltd all rights reserve

抵制不良游戏 拒绝盗版游戏 注意自我保护 谨防受骗上当 适度游戏益脑 沉迷游戏伤身 合理安排时间 享受健康生活