home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / MOUSE / MSMOUSE1.ZIP / ASM.ZIP / TST1.ASM < prev    next >
Encoding:
Assembly Source File  |  1989-02-10  |  921 b   |  47 lines

  1. ;---------------------------------------------------------------
  2. ; Program:      TST1.ASM
  3. ;
  4. ; Description:  This program demonstrates the mouse in graphics
  5. ;               mode.
  6. ;
  7. ; To Run:       MASM TST1;
  8. ;               LINK TST1;
  9. ;               TST1
  10. ;---------------------------------------------------------------
  11.  
  12. .MODEL  LARGE
  13. .STACK  100h
  14. .CODE
  15.  
  16. start:
  17.         ; Set 640 x 200 2 color graphics mode
  18.         mov ax,6
  19.         int 10h
  20.  
  21.         ; Mouse Reset and Status
  22.         xor ax,ax
  23.         int 33h
  24.  
  25.         ; Show Cursor
  26.         mov ax,1
  27.         int 33h
  28.  
  29.         ; Wait for a key press, allowing testing of mouse
  30.         mov ah,8
  31.         int 21h
  32.  
  33.         ; Reset the mouse
  34.         xor ax,ax
  35.         int 33h
  36.  
  37.         ; Set 80 x 25 text mode
  38.         mov ax,3
  39.         int 10h
  40.  
  41.         ; Exit to MS-DOS
  42.         mov ax,4C00h
  43.         int 21h
  44.  
  45. END     start
  46.         END
  47.