-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMP1_Mendoza.asm
184 lines (142 loc) · 3.18 KB
/
MP1_Mendoza.asm
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
;MP1 Mendoza, Patrick F.
section .data
Poem db 0x9,0x9,0x9,0x9,0x49,0xA
PoemLen equ $ - Poem
Poem2 db 0x9,0x9,0x9,0x20,0x20,0x20,0x20,0x20,0x20,'wrote',0xA
PoemLen2 equ $ - Poem2
Poem3 db 0x9,0x9,0x9,' a poem',0xA
PoemLen3 equ $ - Poem3
Poem4 db 0x9,0x9,0x9,' in the shape',0xA
PoemLen4 equ $ - Poem4
Poem5 db 0x9,0x9,' of a Christmas',0xA
PoemLen5 equ $ - Poem5
Poem6 db 0x9,0x9,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'tree but then forgot',0xA
PoemLen6 equ $ - Poem6
Poem7 db 0x9,0x9,0x20,0x20,0x20,0x20,0x20,'to water it and only a few',0xA
PoemLen7 equ $ - Poem7
Poem8 db 0x9,0x9,0x9,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'days',0xA
PoemLen8 equ $ - Poem8
Poem9 db 0x9,0x9,0x9,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'later',0xA
PoemLen9 equ $ - Poem9
Poem10 db 0x9,0x9,0x9,0x20,0x20,0x20,0x20,0x20,0x20,'there',0xA
PoemLen10 equ $ - Poem10
Poem11 db 0x9,0x9,0x20,0x20,0x20,0x20,'were',0xA
PoemLen11 equ $ - Poem11
Poem12 db 0x9,0x9,0x9,0x9,0x9,'words',0xA
PoemLen12 equ $ - Poem12
Poem13 db 0x9,0x9,0x20,0x20,'all',0xA
PoemLen13 equ $ - Poem13
Poem14 db 0x9,0x9,0x9,0x9,0x20,'over',0xA
PoemLen14 equ $ - Poem14
Poem15 db 0x9,0x9,0x9,'the',0xA
PoemLen15 equ $ - Poem15
Poem16 db 0x9,0x9,0x9,0x9,0x9,'carpet',0xA
PoemLen16 equ $ - Poem16
Poem17 db 0x49,0x20,0x4C,0x6F,0x56,0x65,0x20,0x41,0x73,0x53,0x65,0x4D,0x62,0x4C,0x79,0x20,0x50,0x72,0x4F,0x67,0x52,0x61,0x4D,0x6D,0x49,0x6E,0x67,0x47,0x20,0x3A,0x29,0xA
PoemLen17 equ $ - Poem17
Poem18 db 0x53,0x74,0x75,0x64,0x65,0x6E,0x74,0x20,0x4E,0x75,0x6D,0x62,0x65,0x72,0x3A,0x20,0x32,0x30,0x32,0x33,0x31,0x30,0x36,0x30,0x35,0xA8,0xA
PoemLen18 equ $ - Poem18
Poem19 db 80,65,84,82,73,67,75,10,70,10,77,69,78,68,79,90,65,10
PoemLen19 equ $ - Poem19
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, Poem
mov edx, PoemLen
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem2
mov edx, PoemLen2
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem3
mov edx, PoemLen3
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem4
mov edx, PoemLen4
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem5
mov edx, PoemLen5
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem6
mov edx, PoemLen6
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem7
mov edx, PoemLen7
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem8
mov edx, PoemLen8
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem9
mov edx, PoemLen9
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem10
mov edx, PoemLen10
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem11
mov edx, PoemLen11
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem12
mov edx, PoemLen12
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem13
mov edx, PoemLen13
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem14
mov edx, PoemLen14
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem15
mov edx, PoemLen15
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem16
mov edx, PoemLen16
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem17
mov edx, PoemLen17
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem18
mov edx, PoemLen18
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, Poem19
mov edx, PoemLen19
int 0x80
mov eax, 1
int 0x80
;Patrick F. Mendoza
;2nd Year - BSCSDS 202310605