Printing; Utility: Printer_Select - HP 9835A Programming Manual

35 series desktop computer assembly development rom
Table of Contents

Advertisement

166
I/O Handling
Printing
Two utilities are provided to enable you to gain access to the standard system printer-
Printer_select and Print_string.
Printer_select enables you to set the standard system printer to a select code of your choosing.
Print_string enables you to print a string to the standard printer.
Utility: Printer_select
General Procedure: The utility is given the select code to be assigned as the standard system
printer and the desired printing width. The utility makes the assignment and returns with the
previous values of both the select code and printer width.
Special Requirements: The select code value must be in the range of 0 through 17 for the
utility to work properly. Neither the previous nor the selcted printer should be on HPIB device.
Calling Procedure:
1. Load register A with the desired select code.
2. Load register B with the desied printer width.
3. Call the utility.
Exit Conditions: There are no error exits from the utility, so it always returns to the instruc-
tion following the call. Register A contains the value of the previous select, and register B
contains the value of the previous printer width.
The utility can feasibly be used just to interrogate the current value of the printer's select code.
However, a second call to the utility is needed in such cases to assure that the select is not
changed by the first call. So, for example -
-
j
r~i ,~.
. .... :,-'
This results in an unchanged printer specification and the values for the select code and width
being stored in the ICOM area for future use.

Advertisement

Table of Contents
loading

Table of Contents