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

  1. ; The following example writes the contents of "cursloc" into the CRT
  2. ; Controller Cursor Location High and Cursor Location Low registers.
  3.  
  4. cursloc    db    01h, 00h
  5.  
  6.     mov    ax, ds            ; assume cursloc in data segment
  7.     mov    es, ax            ; es = data segment
  8.     mov    bx, offset cursloc    ; es:bx = cursloc address
  9.     mov    ah, 0f3h        ; f2 = write register range
  10.     mov    cx, 0e02h        ; ch = start index of 14
  11.                     ; cl = 2 registers to write
  12.     mov    dx, 0000h        ; dx = crt controller
  13.     int    10h            ; write them!
  14.