Intel 386 User Manual page 240

Embedded microprocessor
Table of Contents

Advertisement

Poll_Command:
Description:
This routine issues a poll command which reads the poll status byte
of the ICU.
Parameters:
Master_or_Slave
Returns:
Current value of poll status byte
Assumptions:
None
Syntax:
in poll_status;
poll_status = Poll_Command();
Real/Protected Mode:
No changes required.
******************************************************************************/
int Poll_Command( int Master_or_Slave)
{
int poll_status;
if (Master_or_Slave == Master) {
_SetEXRegByte(OCW3M, 0x0c); //Initiate polling sequence
poll_status = _GetEXRegByte(ICW2M);
}
else {
_SetEXRegByte(OCW3S, 0x0c); //Initiate polling sequence
poll_status = _GetEXRegByte(ICW2S);
}
return(poll_status);
} /* Poll_Command */
Specifies which interrupt controller is polled
INTERRUPT CONTROL UNIT
9-41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents