.model medium
.stack 20h
.386

.data

.code
public USrestoreBlink
USrestoreBlink proc
	mov	dx,003DAh
	in	al,dx
	mov	dx,003D0h
	mov	al,10h+20h
	out	dx,al
	inc	dx
	in	al,dx
	dec	dx
	or	al,008h
	out	dx,al
	ret
USrestoreBlink endp

public USkillBlink
USkillBlink proc
	mov	dx,003DAh
	in	al,dx
	mov	dx,003C0h
	mov	al,10h+20h
	out	dx,al
	inc	dx
	in	al,dx
	dec	dx
	and	al,not 008h
	out	dx,al
	ret
USkillBlink endp

public USset256charMode
USset256charMode proc
	mov	dx,003C4h
	mov	ax,00003h
	out	dx,ax
	ret
USset256charMode endp

public USrestoreVGA
USrestoreVGA proc
	cli
	mov	dx,003C4h
	mov	ax,100h
	out	dx,ax
	mov	ax,0302h
	out	dx,ax
	mov	ax,0304h
	out	dx,ax
	mov	ax,0300h
	out	dx,ax
	mov	dx,003CEh
	mov	ax,0004h
	out	dx,ax
	mov	ax,1005h
	out	dx,ax
	mov	ax,0E06h
	out	dx,ax
	sti
	ret
USrestoreVGA endp

end
