home *** CD-ROM | disk | FTP | other *** search
- /* This is file INT10.S */
- /*
- ** Copyright (C) 1991 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.
- */
-
- .file "int10.s"
- .version "02.01"
- .data
- .comm _int10_bp_save_area,4
- .text
- .align 4
- .def _int10; .val _int10; .scl 2; .type 044; .endef
- .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
- .def _int10; .val .; .scl -1; .endef
- .data
- .text
-