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

  1. ; The following example writes the contents of "myvalue" into the CRT
  2. ; Controller Cursor Start register.
  3.  
  4. myvalue    db    3h
  5.  
  6.     mov    ah, 0f1h    ; f1 = write one register
  7.     mov    bh, myvalue    ; bh = data from myvalue
  8.     mov    bl, 000ah    ; bl = cursor start index
  9.     mov    dx, 0000h    ; dx = crt controller
  10.     int    10h        ; write it!
  11.  
  12.  
  13. ;---------------------------------------------------------------------
  14.  
  15.  
  16. ; The following example writes the contents of "myvalue" into the Feature
  17. ; Control register.
  18.  
  19. myvalue    db    2h
  20.  
  21.     mov    ah, 0f1h    ; f1 = write one register
  22.     mov    bl, myvalue    ; bl = data from myvalue
  23.     mov    dx, 0028h    ; dx = feature control register
  24.     int    10h        ; write it!
  25.