uchar code *s ="Please input the following commands:\n"
"Inport p (read port)\n"
"Outport p nnn (write port)\n"
" where p=0..3, nnn=0..255\n"
"Help or ? (display this text)\n";
uchar help(){
printf( "\n%s\n", Q );
return 0;
}
uchar Inport( uchar idata *rbuf ) {
uint p;
uchar v;
if( sscanf( rbuf, "%i", &p ) != 1 )
return 1;
case 0: v=P0; break;
case 1: v=P1; break;
case 2: v=P2; break;
case 3: v=P3; break;
case 4: v=P4; break;
case 5: v=P5; break;
case 6: v=P6; break;
case 7: v=P7; break;