O'Reilly logo

Programming in C, 3/e, 3rd Edition by Kamthane Ashok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX D

ROM-BIOS SERVICES

These services can be invoked using int86() function.

PRINT SCREEN

Interrupt : 0 × 5

Returns : Nothing

Use : Sends contents of the screen to the printer

INITIALIZE PRINTER

Interrupt : 0 × 17

Input : AH = 0 × 01

DX = Printer number

(0 = LPT1, 1 = LPT2, 2 = LPT3)

Use : Initializes the printer

MEMORY SIZE

Interrupt : 0 × 12

Input : Nothing

Returns : AX (memory size)

READ DISK CONTROLLER

Interrupt : 0 × 13

Input : AH = 0 × 0

DL = drive

0 × 00−0 × 7f Floppy disks

0 × 80−0 × FF Hard disks

SET CURSOR SIZE

Interrupt : 0 × 10

Input : AH = 0 × 01

CH = Starting Scan line

CL = Ending Scan line

Use : Changes the cursor size.

SET CURSOR POSITION

Interrupt : 0 × 10

Input : AH = 0 × 02

BH = Display Page Number

DH = Row number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required