Category : Word Processors
Archive   : HP22D5.ZIP
Filename : BLINK.ASM

 
Output of file : BLINK.ASM contained in archive : HP22D5.ZIP
DOSSEG
.MODEL LARGE

include extern.inc

EXTRN GetSharedArea:FAR

.DATA

BlinkOffName db 'blinkoff',0
BlinkOnName db 'blinkon',0

Pool PoolStruct
PoolStruct
PoolStruct <> ;END

.CODE

WhenLoaded: retf

setblink:
push cx
call GetSharedArea ;DX:AX = pointer to shared area
pop cx

mov es,dx
mov bx,ax ;ES:BX = pointer to shared area
mov al,es:[bx+502] ;AL = video card type:
; 00 Monochrome
; 01 CGA
; 02 Extended CGA
; 03 Extended CGA - PLASMA
; 04 Hercules Monochrome
; 05 EGA
; 06 Extended EGA
; 07 MCGA
; 08 VGA
; 09 Extended VGA
; 10 Leadning EDGE Internal Graphics Adapter
; 11 Unknown
cmp al,5
jl CGAMONO
cmp al,10
jl EGAVGA

CGAMONO:
mov ax,0040h
mov es,ax ;ES = BIOS data segment
mov dx,es:[63h] ;DX = address of 6845
add dl,4 ;DL = crt mode control register
mov al,es:[65h] ;AL = value of crt mode ctrl
and al,11011111b ;zero bit 5 (blink)
or al,ch
out dx,al
mov es:[65h],al ;update BIOS info
mov ax,STOP
retf


EGAVGA:
mov bl,cl
mov ax,1003h
int 10h
mov ax,STOP
retf

blinkoff:
xor cx,cx
jmp short setblink

blinkon:
mov cx,2001h
jmp short setblink

END




  3 Responses to “Category : Word Processors
Archive   : HP22D5.ZIP
Filename : BLINK.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/