source: trunk/syscall.asm

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

Programmi 2014

File size: 305 bytes
Line 
1segment .text
2 global main
3
4main: mov ecx, msg ; stringa
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.