File tree 2 files changed +27
-27
lines changed
2 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 1
- #include <stdio.h>
2
-
3
- /**
4
- * bmain - function executed before main
5
- * Return: no return.
6
- */
7
-
8
- void __attribute__ ((constructor )) bmain ()
9
- {
10
- printf ("You're beat! and yet, you must allow" );
11
- printf (",\nI bore my house upon my back!\n" );
12
- }
1
+ #include <stdio.h>
2
+
3
+ /**
4
+ * bmain - function executed before main
5
+ * Return: no return.
6
+ */
7
+
8
+ void __attribute__ ((constructor )) bmain ()
9
+ {
10
+ printf ("You're beat! and yet, you must allow" );
11
+ printf (",\nI bore my house upon my back!\n" );
12
+ }
Original file line number Diff line number Diff line change 1
- SECTION .data
2
- msg: db "Hello, Holberton" , 0
3
- fmt: db "%s" , 10 , 0
4
-
5
- SECTION .text
6
- extern printf
7
- global main
8
- main:
9
- mov esi , msg
10
- mov edi , fmt
11
- mov eax , 0
12
- call printf
13
-
14
- mov eax , 0
15
- ret
1
+ SECTION .data
2
+ msg: db "Hello, Holberton" , 0
3
+ fmt: db "%s" , 10 , 0
4
+
5
+ SECTION .text
6
+ extern printf
7
+ global main
8
+ main:
9
+ mov esi , msg
10
+ mov edi , fmt
11
+ mov eax , 0
12
+ call printf
13
+
14
+ mov eax , 0
15
+ ret
You can’t perform that action at this time.
0 commit comments