;	Static Name Aliases
;
	TITLE   vidmode
;	NAME    vidmode.C

	.287
_TEXT	SEGMENT  BYTE PUBLIC 'CODE'
_TEXT	ENDS
_DATA	SEGMENT  WORD PUBLIC 'DATA'
_DATA	ENDS
CONST	SEGMENT  WORD PUBLIC 'CONST'
CONST	ENDS
_BSS	SEGMENT  WORD PUBLIC 'BSS'
_BSS	ENDS
DGROUP	GROUP	CONST,	_BSS,	_DATA
	ASSUME  CS: _TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
EXTRN	_int86:NEAR
EXTRN	__chkstk:NEAR
_TEXT      SEGMENT
; Line 5
	PUBLIC	_vidmode
_vidmode	PROC NEAR
	*** 000000	55 			push	bp
	*** 000001	8b ec 			mov	bp,sp
	*** 000003	b8 0e 00 		mov	ax,14
	*** 000006	e8 00 00 		call	__chkstk
;	regs = -14
; Line 8
	*** 000009	c6 46 f3 0f 		mov	BYTE PTR [bp-13],15
; Line 9
	*** 00000d	8d 46 f2 		lea	ax,[bp-14]	;regs
	*** 000010	16 			push	ss
	*** 000011	50 			push	ax
	*** 000012	8d 46 f2 		lea	ax,[bp-14]	;regs
	*** 000015	16 			push	ss
	*** 000016	50 			push	ax
	*** 000017	b8 10 00 		mov	ax,16
	*** 00001a	50 			push	ax
	*** 00001b	e8 00 00 		call	_int86
	*** 00001e	83 c4 0a 		add	sp,10
; Line 10
	*** 000021	80 7e f2 07 		cmp	BYTE PTR [bp-14],7	;regs
	*** 000025	75 05 			jne	$L20001
	*** 000027	b8 07 00 		mov	ax,7
	*** 00002a	eb 0e 			jmp	SHORT $L20004
					$L20001:
	*** 00002c	80 7e f2 02 		cmp	BYTE PTR [bp-14],2	;regs
	*** 000030	75 05 			jne	$L20003
	*** 000032	b8 02 00 		mov	ax,2
	*** 000035	eb 03 			jmp	SHORT $L20004
					$L20003:
	*** 000037	b8 03 00 		mov	ax,3
					$L20004:
	*** 00003a	8b e5 			mov	sp,bp
	*** 00003c	5d 			pop	bp
	*** 00003d	c3 			ret	

_vidmode	ENDP
_TEXT	ENDS
END
