~manxi-david/pyeffect/pyeffect

« back to all changes in this revision

Viewing changes to Examples/libc_system.s

  • Committer: dvspeed
  • Date: 2011-12-26 13:18:36 UTC
  • Revision ID: manxi.david@gmail.com-20111226131836-mvoy9y32z0ujxvm1
-Change of folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.section .data
2
 
Bytes00:
3
 
        .byte   0
4
 
Bytes11:
5
 
        .byte   0
6
 
Bytes22:
7
 
        .byte   0
8
 
Bytes33:
9
 
        .byte   0
10
 
Bytes44:
11
 
        .byte   0
12
 
Bytes55:
13
 
        .byte   0
14
 
Bytes66:
15
 
        .byte   0
16
 
Bytes77:
17
 
        .byte   0
18
 
Bytes88:
19
 
        .byte   0
20
 
Bytes99:
21
 
        .byte   0
22
 
Bytes1010:
23
 
        .byte   0
24
 
Bytes1111:
25
 
        .byte   0
26
 
Bytes1212:
27
 
        .byte   0
28
 
Bytes1313:
29
 
        .byte   0
30
 
Bytes1414:
31
 
        .byte   0
32
 
Bytes1515:
33
 
        .byte   0
34
 
Bytes1616:
35
 
        .byte   0
36
 
Bytes1717:
37
 
        .byte   0
38
 
Bytes1818:
39
 
        .byte   0
40
 
Bytes1919:
41
 
        .byte   0
42
 
Bytes2020:
43
 
        .byte   0
44
 
Bytes2121:
45
 
        .byte   0
46
 
Bytes2222:
47
 
        .byte   0
48
 
Bytes2323:
49
 
        .byte   0
50
 
Bytes2424:
51
 
        .byte   0
52
 
Bytes2525:
53
 
        .byte   0
54
 
Bytes2626:
55
 
        .byte   0
56
 
Bytes2727:
57
 
        .byte   0
58
 
Bytes2828:
59
 
        .byte   0
60
 
Bytes2929:
61
 
        .byte   0
62
 
Bytes3030:
63
 
        .byte   0
64
 
Bytes3131:
65
 
        .byte   0
66
 
Bytes3232:
67
 
        .byte   0
68
 
Bytes3333:
69
 
        .byte   0
70
 
Bytes3434:
71
 
        .byte   0
72
 
Bytes3535:
73
 
        .byte   0
74
 
Bytes3636:
75
 
        .byte   0
76
 
Bytes3737:
77
 
        .byte   0
78
 
Bytes3838:
79
 
        .byte   0
80
 
Bytes3939:
81
 
        .byte   0
82
 
Bytes4040:
83
 
        .byte   0
84
 
Bytes4141:
85
 
        .byte   0
86
 
Bytes4242:
87
 
        .byte   0
88
 
Bytes4343:
89
 
        .byte   0
90
 
Bytes4444:
91
 
        .byte   0
92
 
Bytes4545:
93
 
        .byte   0
94
 
Bytes4646:
95
 
        .byte   0
96
 
Bytes4747:
97
 
        .byte   0
98
 
Bytes4848:
99
 
        .byte   0
100
 
Bytes4949:
101
 
        .byte   0
102
 
Bytes5050:
103
 
        .byte   0
104
 
Bytes5151:
105
 
        .byte   0
106
 
Bytes5252:
107
 
        .byte   0
108
 
Bytes5353:
109
 
        .byte   0
110
 
Bytes5454:
111
 
        .byte   0
112
 
.section .text
113
 
.globl _start
114
 
_start:
115
 
#Begin of program:
116
 
        #       s="echo This is printed by function system, glibc library\0"
117
 
        movb    $101,   Bytes00
118
 
        movb    $99,    Bytes11
119
 
        movb    $104,   Bytes22
120
 
        movb    $111,   Bytes33
121
 
        movb    $32,    Bytes44
122
 
        movb    $84,    Bytes55
123
 
        movb    $104,   Bytes66
124
 
        movb    $105,   Bytes77
125
 
        movb    $115,   Bytes88
126
 
        movb    $32,    Bytes99
127
 
        movb    $105,   Bytes1010
128
 
        movb    $115,   Bytes1111
129
 
        movb    $32,    Bytes1212
130
 
        movb    $112,   Bytes1313
131
 
        movb    $114,   Bytes1414
132
 
        movb    $105,   Bytes1515
133
 
        movb    $110,   Bytes1616
134
 
        movb    $116,   Bytes1717
135
 
        movb    $101,   Bytes1818
136
 
        movb    $100,   Bytes1919
137
 
        movb    $32,    Bytes2020
138
 
        movb    $98,    Bytes2121
139
 
        movb    $121,   Bytes2222
140
 
        movb    $32,    Bytes2323
141
 
        movb    $102,   Bytes2424
142
 
        movb    $117,   Bytes2525
143
 
        movb    $110,   Bytes2626
144
 
        movb    $99,    Bytes2727
145
 
        movb    $116,   Bytes2828
146
 
        movb    $105,   Bytes2929
147
 
        movb    $111,   Bytes3030
148
 
        movb    $110,   Bytes3131
149
 
        movb    $32,    Bytes3232
150
 
        movb    $115,   Bytes3333
151
 
        movb    $121,   Bytes3434
152
 
        movb    $115,   Bytes3535
153
 
        movb    $116,   Bytes3636
154
 
        movb    $101,   Bytes3737
155
 
        movb    $109,   Bytes3838
156
 
        movb    $44,    Bytes3939
157
 
        movb    $32,    Bytes4040
158
 
        movb    $103,   Bytes4141
159
 
        movb    $108,   Bytes4242
160
 
        movb    $105,   Bytes4343
161
 
        movb    $98,    Bytes4444
162
 
        movb    $99,    Bytes4545
163
 
        movb    $32,    Bytes4646
164
 
        movb    $108,   Bytes4747
165
 
        movb    $105,   Bytes4848
166
 
        movb    $98,    Bytes4949
167
 
        movb    $114,   Bytes5050
168
 
        movb    $97,    Bytes5151
169
 
        movb    $114,   Bytes5252
170
 
        movb    $121,   Bytes5353
171
 
        movb    $0,     Bytes5454
172
 
        #       libc.system(s)
173
 
        movq    $Bytes00,       %rdi
174
 
        call system
175
 
        #       exit(0)
176
 
        xorq    %rdi,   %rdi
177
 
        movq    $60,    %rax
178
 
        syscall
179
 
#End of program