home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / RGASM.RAR / ASMCODE.EXE / CHAPT8 / CURSOFF.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-05-10  |  916 b   |  24 lines

  1. ;
  2. ;       Program CursOff ( Chapter 8 )
  3. ;
  4.     page    55,132
  5. .model small
  6. .code
  7.     org     100h
  8. Begin:
  9. ;===    Read number of active video page from the BIOS data area
  10.     mov     ax,0            ; Clear AX
  11.     mov     es,ax           ; Prepare ES for accessing BIOS data area
  12.     mov     bh,es:[462h]    ; Active video page into BH for next calls 
  13. ;===    Get parameters of cursor on the active video page
  14.     mov     ah,03h          ; Function 03h - Get cursor parameters
  15.     int     10h             ; BIOS video service
  16. ;===    Turn off the cursor on the active video page 
  17.     mov     ah,01h          ; Function 01h - Set cursor parameters
  18.     or      ch,30h          ; Set bit 4 and 5 of CH register to 1
  19.     int     10h             ; BIOS video service call
  20. ;===    Exit program    
  21.     mov     ax,4C00h        ; Function 4Ch - terminate process; exit code- 0
  22.     int     21h             ; DOS service call
  23.     end     Begin
  24.