;	Static Name Aliases
;
	TITLE   vga

	.386p

_TEXT	SEGMENT  DWORD PUBLIC use32 'CODE'
	ASSUME	CS: _TEXT

	PUBLIC	SetMode_
	align	4
SetMode_	PROC NEAR
	; Mode number is already in AL
	push	ebx
	mov	bl,al		; save mode
	xor	ah,ah		; set mode
	int	10h

	mov	ah,0fh		; get mode
	int	10h
	sub	al,bl		; leaves 0 in al if they are equal
	movzx	eax,al
	pop	ebx
	ret
	db	80h dup (?)	; extra space for drivers
	align	4
SetMode_	ENDP

	PUBLIC	VGAEnd_
	PUBLIC	VGASetPage_
; void VGASetPage(page)
; unsigned char page;
VGASetPage_	PROC NEAR
	ret
	db	60h dup	(?)
VGAEnd_:
VGASetPage_	ENDP

_TEXT	ENDS
	END
