home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / mouse / lib / ega / examples / f7examp.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  912 b   |  29 lines

  1. ; The following example defnes default values for the Attribute Controller.
  2.  
  3. attrdflt db    00h, 01h, 02h, 03h, 04h, 05h, 06h, 07h
  4.      db    10h, 11h, 12h, 13h, 14h, 15h, 16h, 17h
  5.      db    08h, 00h, 0fh, 00h
  6.  
  7.     mov    ax, ds            ; assume attrdflt in data segment
  8.     mov    es, ax            ; es = data segment
  9.     mov    bx, offset attrdflt    ; es:bx = attrdflt address
  10.     mov    ah, 0f7h        ; f7 = define default register table
  11.     mov    dx, 0018h        ; dx = attribute controller
  12.     int    10h            ; do it!
  13.  
  14.  
  15. ;---------------------------------------------------------------------------
  16.  
  17.  
  18. ; The following example defines a default value for the Feature Control
  19. ; register.
  20.  
  21. featdflt db    00h
  22.  
  23.     mov    ax, ds            ; assume featdflt in data segment
  24.     mov    es, ax            ; es = data segment
  25.     mov    bx, offset attrdflt    ; es:bx = featdflt address
  26.     mov    ah, 0f7h        ; f7 = define default register table
  27.     mov    dx, 0028h        ; dx = feature control register
  28.     int    10h            ; do it!
  29.