⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 int10.s

📁 Algorithms for Image Processing and Computer Vision Source Code
💻 S
字号:
/* This is file INT10.S */
/*
** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
**
** This file is distributed under the terms listed in the document
** "copying.dj", available from DJ Delorie at the address above.
** A copy of "copying.dj" should accompany this file; if not, a copy
** should be available from where this file was obtained.  This file
** may not be distributed without a verbatim copy of "copying.dj".
**
** This file is distributed WITHOUT ANY WARRANTY; without even the implied
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

	.data
	.comm	_int10_bp_save_area,4
	.text
	.align	4
	.globl	_int10

_int10:
	pushl	%ebp
	movl	%esp,%ebp
	movl	%ebp,_int10_bp_save_area
	pushl	%ebx
	pushl	%ecx
	pushl	%edx
	pushl	%esi
	pushl	%edi

	movl	8(%ebp),%eax

	pushl	(%eax)		/* EAX */
	pushl	4(%eax)		/* EBX */
	pushl	8(%eax)		/* ECX */
	pushl	12(%eax)	/* EDX */
	pushl	16(%eax)	/* ESI */
	pushl	20(%eax)	/* EDI */
	pushl	24(%eax)	/* EBP */
/*	pushl	28(%eax)*/	/* ES */
/*	popw	%es*/
	popl	%ebp
	popl	%edi
	popl	%esi
	popl	%edx
	popl	%ecx
	popl	%ebx
	popl	%eax
	int	$0x10
	pushl	%eax
	pushl	%ebx
	pushl	%ecx
	pushl	%edx
	pushl	%esi
	pushl	%edi
	pushl	%ebp
/*	pushw	%es */
	movl	_int10_bp_save_area,%ebp
	movl	8(%ebp),%eax

/*	popl	28(%eax)*/	/* ES */
/*	andl	$0xffff,28(%eax) */
	popl	24(%eax)	/* EBP */
	popl	20(%eax)	/* EDI */
	popl	16(%eax)	/* ESI */
	popl	12(%eax)	/* EDX */
	popl	8(%eax)		/* ECX */
	popl	4(%eax)		/* EBX */
	popl	(%eax)		/* EAX */
	mov	28(%eax),%eax	/* return flags */

	popl	%edi
	popl	%esi
	popl	%edx
	popl	%ecx
	popl	%ebx
	leave	
	ret	

	.align	4
	.data
	.text

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -