[comp.sys.ibm.pc] CURSOR - OFF/ON

zat@caldwr.caldwr.gov (Tholow Ziegler) (11/23/87)

Here are two routines that I have used on a IBM-CGA system. Make
an ASCII file for each then run them through DEBUG, then use
the output .COM files

The first one turns off the cursor - call it NOCUR.TXT
---------------------------
a 100
mov  ah,1
mov  ch,20
int  10
int  20

r cx
8
n nocur.com
w
q
--------------------------------
The blank line after 'int 20' is necessary.
do DEBUG < NOCUR.TXT  then use NOCUR.COM

The second will restore the cursor - call it CUR.TXT
---------------------------------
a 100
mov  ah,10
int  10
cmp  al,7
jz   10d
mov  cx,607
jmp  110
mov  cx,0b0c
mov  ah,1
int  10
int  20

r cx
16
n cur.com
w
q
-----------------------------
Again the blank line after 'int 20' is necessary.
do DEBUG < CUR.TXT   then use CUR.COM



           Tholow A. Ziegler             ||         a.k.a.  ZAT,the
California Department of Water Resources ||   caldwr!zat@ucdavis.edu (Internet)
     "Conserve Water - Dilute it..."     || !ucbvax!ucdavis!caldwr!zat (UUCP)
                                           
           The opinions expressed above are not those of my employer!