Category : Files from Magazines
Archive   : PCTJ1285.ZIP
Filename : FIXCURS.ASM

 
Output of file : FIXCURS.ASM contained in archive : PCTJ1285.ZIP
TITLE FIXCURS -- FIX MONOCHROME CURSOR

CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CODE, DS:CODE, ES:NOTHING

;
; This program is set up to be made into a COM file
;

ORG 100H

;
; First check for the monochrome adapter.
;

START: INT 11H ; SET AX = EQUIPMENT FLAGS
AND AL, 30H ; MASK OFF ALL BUT VIDEO BITS
CMP AL, 30H ; TEST FOR MONOCHROME ADAPTER
JNE EXIT ; JUMP IF NOT MONOCHROME

;
; Now check for incorrect cursor mode returned from the BIOS
;

MOV AH, 3 ; CALL BIOS TO GET CURSOR TYPE
INT 10H ;
CMP CX, 0607H ; CHECK FOR INVALID (COLOR) TYPE
JNE EXIT ; JUMP IF NOT A BAD VALUE

;
; At this point we know that the monochrome adapter is
; in use and that the BIOS cursor mode is incorrect.
;
; Call the BIOS to set the cursor type correctly.
;

MOV CX, 0B0CH ; USE CORRECT CURSOR TYPE
MOV AH, 1 ; CALL BIOS TO SET CURSOR TYPE
INT 10H ;

EXIT: MOV AH, 0 ; EXIT BACK TO DOS
INT 21H ;

CODE ENDS

END START


  3 Responses to “Category : Files from Magazines
Archive   : PCTJ1285.ZIP
Filename : FIXCURS.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/