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

  1. ; The following example saves the contents of the Sequencer Map Mask register
  2. ; in "myvalue".
  3.  
  4. myvalue    db    ?
  5.  
  6.     mov    ah, 0f0h    ; f0 = read one register
  7.     mov    bx, 0002h    ; bh = 0
  8.                 ; bl = map mask index
  9.     mov    dx, 0008h    ; dx = sequencer
  10.     int    10h        ; get it!
  11.     mov    myvalue, bl    ; save it!
  12.  
  13.  
  14. ;---------------------------------------------------------------------
  15.  
  16.  
  17. ; The following example saves the contents of the Miscellaneous Output
  18. ; register in "myvalue".
  19.  
  20. myvalue    db    ?
  21.  
  22.     mov    ah, 0f0h    ; f0 = read one register
  23.     mov    dx, 0020h    ; dx = miscellaneous output register
  24.     int    10h        ; get it!
  25.     mov    myvalue, bl    ; save it!
  26.