source:
trunk/syscall.asm@
26
Last change on this file since 26 was 26, checked in by , 10 years ago | |
---|---|
File size: 305 bytes |
Rev | Line | |
---|---|---|
[21] | 1 | segment .text |
2 | global main | |
3 | ||
[26] | 4 | main: mov ecx, msg ; stringa |
[21] | 5 | mov edx, msg_size ; dimensione stringa |
6 | mov ebx, 1 ; file descriptor (stdout) | |
7 | mov eax, 4 ; syscall 4 (write) | |
8 | int 0x80 | |
9 | ||
10 | mov eax, 1 ; syscall 1 (exit) | |
11 | int 0x80 | |
12 | ||
13 | ||
14 | segment .rodata | |
15 | msg db 'Ciao solabbisti!',10,0 | |
16 | msg_size equ $ - msg | |
17 |
Note:
See TracBrowser
for help on using the repository browser.