-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.s
More file actions
95 lines (95 loc) · 1.49 KB
/
common.s
File metadata and controls
95 lines (95 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.file "common.c"
.text
.globl outb
.type outb, @function
outb:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, %edx
movl %esi, %eax
movw %dx, -4(%rbp)
movb %al, -8(%rbp)
movzwl -4(%rbp), %edx
movzbl -8(%rbp), %eax
#APP
# 5 "common.c" 1
outb %al, %dx
# 0 "" 2
#NO_APP
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size outb, .-outb
.globl inb
.type inb, @function
inb:
.LFB1:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
movl %edi, %eax
movw %ax, -28(%rbp)
movzwl -28(%rbp), %edx
movw %dx, -30(%rbp)
movzwl -30(%rbp), %edx
#APP
# 11 "common.c" 1
inb %dx, %al
# 0 "" 2
#NO_APP
movl %eax, %ebx
.cfi_offset 3, -24
movb %bl, -9(%rbp)
movzbl -9(%rbp), %eax
popq %rbx
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size inb, .-inb
.globl inw
.type inw, @function
inw:
.LFB2:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
movl %edi, %eax
movw %ax, -28(%rbp)
movzwl -28(%rbp), %edx
movw %dx, -30(%rbp)
movzwl -30(%rbp), %edx
#APP
# 18 "common.c" 1
inw %dx, %ax
# 0 "" 2
#NO_APP
movl %eax, %ebx
.cfi_offset 3, -24
movw %bx, -10(%rbp)
movzwl -10(%rbp), %eax
popq %rbx
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size inw, .-inw
.ident "GCC: (GNU) 4.6.2 20111223 (prerelease)"
.section .note.GNU-stack,"",@progbits