home *** CD-ROM | disk | FTP | other *** search
- 100 '****************************************************************
- 110 '* TST1.BAS *
- 120 '* *
- 130 '* Displays graphics mode mouse cursor until a key is pressed *
- 140 '* Note: Program assumes mouse and mouse driver are installed *
- 145 '****************************************************************
- 150 '
- 160 ' Set and clear the display
- 170 SCREEN 2
- 180 CLS
- 190 '
- 200 ' Determine mouse interrupt address
- 210 DEF SEG = 0
- 220 MOUSEG = 256 * PEEK(207) + PEEK(206)
- 230 MOUSE = 256 * PEEK(205) + PEEK(204) + 2
- 240 DEF SEG = MOUSEG
- 250 '
- 260 ' Reset mouse
- 270 M1%= 0
- 280 CALL MOUSE(M1%, M2%, M3%, M4%)
- 290 '
- 300 ' Show cursor
- 310 M1%= 1
- 320 CALL MOUSE(M1%, M2%, M3%, M4%)
- 330 '
- 340 ' Wait for any key press
- 350 IF INKEY$ = "" THEN GOTO 350
- 360 '
- 370 ' Hide cursor
- 380 M1%= 2
- 390 CALL MOUSE(M1%, M2%, M3%, M4%)
- 400 '
- 410 ' Reset mouse
- 420 M1%= 0
- 430 CALL MOUSE(M1%, M2%, M3%, M4%)
- 440 '
- 450 END
-