iAPX 432 Interface Processor Architecture Reference Manual

/************************************************/

P

 

~

/*

Initialization

*/

/*

 

*/

/*****************************************k******/

Call Disable_Interrupts: /* Busy waiting will be used,

not the interrupt mechanism

*/

 

/* Also assume that 00 faults will occur

*/

Call Dispatch ~

 

 

 

/************************************************/

 

P

Print Driver Body

~

 

/*

*/

 

/*

 

*/

 

/************************************************/

 

/* loop forever

*/

Call GetJ>rint_message:

/* Receive a message from the Print Request Port.

*/

Call Open_winda-r:

/* Open a window onto the message.

*/

Do offset = 0 to l023~

/* Read and print the contents of the message

*/

Call Print (subrange(offset»~

/* using the mapped subrange and the AP's native

*/

Em:

/* instruction. Assume Print is a system routine.

*/

Call Close_windCMi

/* Close the windOll.

*/

Call ReturnJ>rint_message~

/* Send the message to the Print Reply Port.

*/

End~

 

 

End

 

 

Printer__task~

 

 

F-lO

Page 173
Image 173
Intel iapx 432 manual Send the message to the Print Reply Port