home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1984-05-15 | 1.3 KB | 30 lines |
- 10 'This program makes a COM program on disk that will set the cursor
- 20 'to any shape you wish (at DOS level). Works with DOS 1.1, and
- 30 'probably works with DOS 2.0.
- 40 ' What this little program does is to use the VIDEO interrupt
- 50 'to set the cursor type. Here is what the program does in
- 60 'sort-of assembly language
- 70 ' MOV AH,01 ;put a 1 into the AH register. This tells the VIDEO
- 80 ' ;interrrupt that you want to set the cursor type
- 90 ' MOV CX,0102 ;put the stop & start lines into the CX register
- 100 ' INT 10H ;do the VIDEO interrupt
- 110 ' INT 20H ;do the 'RETURN TO DOS' interrupt to end the program
- 120 'The color/graphics adapter has 7 scan lines. The monochrome has
- 130 '13. Numbers higher than these may cause strange results!
- 140 'Ted Batutis, 76703,252.
- 150 INPUT"Enter the output filename (something.COM): ";FS$
- 160 OPEN FS$ FOR OUTPUT AS #1
- 170 INPUT"Enter start line of cursor: ";STT%
- 180 INPUT"Enter stop line of cursor: ";STP%
- 190 FOR I=1 TO 10
- 200 READ J(I)
- 210 NEXT I
- 220 DATA 180, 1, 185, 0, 0, 205, 16, 205, 32, 0
- 230 J(4)=STP%
- 240 J(5)=STT%
- 250 FOR I=1 TO 10
- 260 PRINT #1,CHR$(J(I));
- 270 NEXT I
- 280 PRINT"Done. "
- 290 END
-