Bios System Service-parallel port service

Source: Internet
Author: User
7 parallel port service (parallel port service -- int 17 h)

00 h-output characters to the printer

01 H-initialize the printer port

02 h-read printer status

 

(1) function 00 h

 

Function Description: output characters to the printer

Entry parameter: Ah = 00 h

Al = output character

DX = printer No. (0-lpt1, 1-lpt2, 2-lpt3 ,......)

Exit parameter: Ah = printer status. When the value is 1, the meaning is as follows: Bit 7-printer idle bit 3-I/o Error

6-printer response 2-Reserved

Bit 5-no paper bit 1-retained

4-printer selected 0-printer time-out

 

(2) function 01 H

 

Function Description: Initialize the printer port.

Entry parameter: Ah = 01 H

DX = printer No. (0-lpt1, 1-lpt2, 2-lpt3 ,......)

Exit parameter: Ah = printer status. You can define the following functions for H.

 

(3) function 02 h

 

Function Description: Read the printer status.

Entry parameter: Ah = 02 h

DX = printer No. (0-lpt1, 1-lpt2, 2-lpt3 ,......)

Exit parameter: Ah = printer status. You can define the following functions for H.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.