#include <shuma.h>
uchar shumacode[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff};
uchar shumacoded[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10,0xff};
// 0 1 2 3 4 5 6 7 8 9 ff
void shuma(uchar wei,uchar duan)
{
XBYTE[0xe000]=0xff;
XBYTE[0xc000]=1<<wei;
XBYTE[0xe000]=shumacode[duan];
}