#include"hard.h" int uss_no; void inzt01() { sys0(1,0x1011); sys2(1,10,0,0); sys5(1,0,USS_INT_VCT,0,0); sys8(1,1,0); sys8(1,2,0); sys8(1,3,0); sys8(1,4,0); sys11(1); } void nrmt01(int a,int b) { } void timt01(int a,int b) { uss_stop(); if(dipsw_data()==0) { uss_no=0; } else if(dipsw_data()==1) { uss_no=1; } else if(dipsw_data()==2) { uss_no=2; } else { uss_no=0; } uss_start(uss_no); } interrupt void intt01() { int data; if(uss_chk_int()) { uss_stop(); if(uss_chk_conect()) { data=uss_no*1000+999; } else { data=uss_data(); } sys8(1,uss_no+1,data); uss_start(uss_no); } else { uss_stop(); } }