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

  1. ; The following example saves the contents of the Attribute Controller
  2. ; Palette registers in "paltable".
  3.  
  4. paltable db    16 dup (?)
  5.  
  6.     mov    ax, ds            ; assume paltable in data segment
  7.     mov    es, ax            ; es = data segment
  8.     mov    bx, offset paltable    ; es:bx = paltable address
  9.     mov    ah, 0f2h        ; f2 = read register range
  10.     mov    cx, 0010h        ; ch = start index of 0
  11.                     ; cl = 16 registers to read
  12.     mov    dx, 0018h        ; dx = attribute controller
  13.     int    10h            ; read them!
  14.