page,132
title BORDER.ASM - SET SCREEN BORDER COLOR for MICROSOFT 'C' (4.0)
;
;	border(int)   Color text screen border 0=black 1=blue 2=green 3=red
;       by Mike Elkins   
;
;
_text 	segment	byte public 'code'
	assume	cs:_text

	public	_border

arg	struc
oldbp	dw	?
retn	dw	?
clr	dw	?
arg	ends

_border	     proc    near

	push	bp
	mov	bp,sp
        mov     dx,3d9h
	xor	ax,ax		;set up for low memory stuff
	mov	ax,[bp].clr	;put color in di
	out	dx,al
        pop     bp
        ret

_border 	endp
_text    	ends
     	end
