## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Function F8H - Read Default Register Table

This function reads the table containing default register values for any pointer/data chip or single register.

Input

AH = 0F8H

DX = Port number:

Pointer/data chips

0h: CRT Controller (3?4H)
8h: Sequencer (3C4H)
10h: Graphics Controller (3CEH)
18h: Attribute Controller (3C0H)

Single registers

20h: Miscellaneous Output register (3C2H)
28h: Feature Control register (3?AH)
30h: Graphics 1 Position register (3CCH)
38h: Graphics 2 Position register (3CAH)

? = B for monochrome modes, or D for color modes

ES:BX = Points to a table into which the default values are returned. The table must have room for the full set of values for the pointer/data chip or single register specified.

Output

AX: Restored
BX: Not restored
DX: Not restored
ES: Restored

All other registers are restored.

Example

The following example reads the default values for the Miscellaneous Output register:

    regdflt  db
             mov  ax, ds
             mov  es, ax               ; es = data segment
             mov  bx, offset regdflt   ; es:bx = regdflt address
             mov  ah, 0f8h             ; f8 = read default register table
             mov  dx, 0020h            ; dx = miscellaneous output register
             int  10h                  ; do it!

The following example reads the default values for the CRT Controller register:

    regdflt  db   25 dup (?)
             mov  ax, ds
             mov  es, ax               ; es = data segment
             mov  bx, offset regdflt   ; es:bx = regdflt address
             mov  ah, 0f8h             ; f8 = read default register table
             mov  dx, 0000h            ; dx = crt controller register
             int  10h                  ; do it!