[BACK]Return to dos.s CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / asm

File: [local] / OpenXM_contrib2 / asir2000 / asm / dos.s (download)

Revision 1.1.1.1 (vendor branch), Fri Dec 3 07:39:06 1999 UTC (24 years, 5 months ago) by noro
Branch: NORO, MAIN
CVS Tags: maekawa-ipv6, STABLE_1_1_3, R_1_3_1-2, RELEASE_20000124, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9, ASIR2000
Changes since 1.1: +0 -0 lines

Imported asir2000 as OpenXM_contrib2/asir2000.

.text
	.align 2

.globl _read_cons
_read_cons:
	pushl %ebp
	movl %esp,%ebp
	pushl %ebx
	pushl %esi
	pushl %edi
	pushf
	movb $6,%ah
	movb $0xff,%dl
	int $0x21
	movzbl %al,%eax
	popf
	popl %edi
	popl %esi
	popl %ebx
	leave
	ret

.globl _read_cons_blocking
_read_cons_blocking:
	pushl %ebp
	movl %esp,%ebp
	pushl %ebx
	pushl %esi
	pushl %edi
	pushf
	movb $7,%ah
	int $0x21
	movzbl %al,%eax
	popf
	popl %edi
	popl %esi
	popl %ebx
	leave
	ret

.globl _set_pb
_set_pb:
	pushl %ebp
	movl %esp,%ebp
	pushl %ebx
	pushl %esi
	pushl %edi
	pushf
	movl 8(%ebp),%eax
	movl 12(%ebp),%edx
	movl %edx,(%eax)
	movw $0,4(%eax)
	movl 16(%ebp),%edx
	movl %edx,6(%eax)
	movw %es,%dx
	movw %dx,10(%eax)
	movb $0,12(%eax)
	popf
	popl %edi
	popl %esi
	popl %ebx
	leave
	ret
	
.globl _disable_ctrl_c
_disable_ctrl_c:
	pushl %ebp
	movl %esp,%ebp
	pushl %ebx
	pushl %esi
	pushl %edi
	pushf
	movw $0x2506,%ax
	pushw %ds
	movw %cs,%dx
	movw %dx,%ds
	movb $0x23,%cl
	movl $_dummy_ctrl_c,%edx
	int $0x21
	popw %ds
	popf
	popl %edi
	popl %esi
	popl %ebx
	leave
	ret

.globl _dummy_ctrl_c
_dummy_ctrl_c:
	iret