Annotation of OpenXM_contrib2/asir2000/asm/dos.s, Revision 1.1.1.1
1.1 noro 1: .text
2: .align 2
3:
4: .globl _read_cons
5: _read_cons:
6: pushl %ebp
7: movl %esp,%ebp
8: pushl %ebx
9: pushl %esi
10: pushl %edi
11: pushf
12: movb $6,%ah
13: movb $0xff,%dl
14: int $0x21
15: movzbl %al,%eax
16: popf
17: popl %edi
18: popl %esi
19: popl %ebx
20: leave
21: ret
22:
23: .globl _read_cons_blocking
24: _read_cons_blocking:
25: pushl %ebp
26: movl %esp,%ebp
27: pushl %ebx
28: pushl %esi
29: pushl %edi
30: pushf
31: movb $7,%ah
32: int $0x21
33: movzbl %al,%eax
34: popf
35: popl %edi
36: popl %esi
37: popl %ebx
38: leave
39: ret
40:
41: .globl _set_pb
42: _set_pb:
43: pushl %ebp
44: movl %esp,%ebp
45: pushl %ebx
46: pushl %esi
47: pushl %edi
48: pushf
49: movl 8(%ebp),%eax
50: movl 12(%ebp),%edx
51: movl %edx,(%eax)
52: movw $0,4(%eax)
53: movl 16(%ebp),%edx
54: movl %edx,6(%eax)
55: movw %es,%dx
56: movw %dx,10(%eax)
57: movb $0,12(%eax)
58: popf
59: popl %edi
60: popl %esi
61: popl %ebx
62: leave
63: ret
64:
65: .globl _disable_ctrl_c
66: _disable_ctrl_c:
67: pushl %ebp
68: movl %esp,%ebp
69: pushl %ebx
70: pushl %esi
71: pushl %edi
72: pushf
73: movw $0x2506,%ax
74: pushw %ds
75: movw %cs,%dx
76: movw %dx,%ds
77: movb $0x23,%cl
78: movl $_dummy_ctrl_c,%edx
79: int $0x21
80: popw %ds
81: popf
82: popl %edi
83: popl %esi
84: popl %ebx
85: leave
86: ret
87:
88: .globl _dummy_ctrl_c
89: _dummy_ctrl_c:
90: iret
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>