#include "m9402.h" int touch() /*タッチセンサ監視用関数*/ { int a; int b; b=0; a = (inportb(EDRH)&0xf0); a = (a >> 4); if((a & 0x01)==0x01) b+=10; if((a & 0x02)==0x02) b+=100; if((a & 0x04)==0x04) b+=1; sys8(3,1,b); }