Specifications

116 Appendix Error! Main Document Only.Error! Main Document Only.6 - Optional
Software Protocols
do ; while ((inp(BASEPORT+2) & 0x40) == 0x40); /* wait for X bit to clear
*/
} /* re poll before reading Y */
else { /* get Y */
point.data[2] = (byte)inp(BASEPORT); /* Y high */
point.data[3] = (byte)inp(BASEPORT+1); /* Y low */
dataaquired = TRUE;
do ; while ((inp(BASEPORT+2) & 0xc0) == 0x80); /* wait for not ready or X
bit */
}
} while (!dataaquired);
return(TRUE);
}