source: trunk/syscall.asm@ 26

Last change on this file since 26 was 26, checked in by Mattia Monga, 10 years ago

Programmi 2014

File size: 305 bytes
RevLine 
[21]1segment .text
2 global main
3
[26]4main: 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
14segment .rodata
15msg db 'Ciao solabbisti!',10,0
16msg_size equ $ - msg
17
Note: See TracBrowser for help on using the repository browser.