corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | section .text |
2 | global main ;must be declared for using gcc |
||
3 | |||
4 | main: ;tell linker entry point |
||
5 | |||
6 | mov edx, len ;message length |
||
7 | mov ecx, msg ;message to write |
||
8 | mov ebx, 1 ;file descriptor (stdout) |
||
9 | mov eax, 4 ;system call number (sys_write) |
||
10 | int 0x80 ;call kernel |
||
11 | |||
12 | mov eax, 1 ;system call number (sys_exit) |
||
13 | int 0x80 ;call kernel |
||
14 | |||
15 | section .data |
||
16 | |||
17 | msg db 'Hello, world!',0xa ;our dear string |
||
18 | len equ $ - msg ;length of our dear string |