;	Static Name Aliases
;
	TITLE   setmode
;	NAME    setmode.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	_setmode
_setmode	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
; Line 6
;	mode = 4
;	regs = -14
; Line 9
	*** 000009	8b 46 04 		mov	ax,[bp+4]	;mode
	*** 00000c	89 46 f2 		mov	[bp-14],ax	;regs
; Line 10
	*** 00000f	8d 46 f2 		lea	ax,[bp-14]	;regs
	*** 000012	16 			push	ss
	*** 000013	50 			push	ax
	*** 000014	8d 46 f2 		lea	ax,[bp-14]	;regs
	*** 000017	16 			push	ss
	*** 000018	50 			push	ax
	*** 000019	b8 10 00 		mov	ax,16
	*** 00001c	50 			push	ax
	*** 00001d	e8 00 00 		call	_int86
; Line 11
	*** 000020	8b e5 			mov	sp,bp
	*** 000022	5d 			pop	bp
	*** 000023	c3 			ret	

_setmode	ENDP
_TEXT	ENDS
END
