home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CEXPRESS.ZIP / SCREEN.ASM / CURSON.ASM < prev    next >
Assembly Source File  |  1989-05-03  |  483b  |  22 lines

  1. ;void  cursor_on();
  2.  
  3.     EXTRN  _memory_model:byte
  4.     EXTRN  _start_line:byte
  5.     EXTRN  _stop_line:byte
  6.  
  7. _TEXT    SEGMENT BYTE PUBLIC 'CODE'
  8.     ASSUME CS:_TEXT
  9.     PUBLIC _cursor_on
  10. _cursor_on proc near
  11.     mov  ch,_start_line    ;fetch former start_line
  12.     mov  cl,_stop_line    ;...and stop_line
  13.     mov  ah,1        ;func to set cursor lines
  14.     int  10h        ;make cursor invisible
  15.     cmp  _memory_model,0    ;quit
  16.     jle  quit        ;
  17.     db   0CBh        ;RET far
  18. quit:    ret            ;RET near
  19. _cursor_on endp
  20. _TEXT    ENDS
  21.     END
  22.