Changes between Version 11 and Version 12 of Sperimentazione 2
- Timestamp:
- Mar 8, 2017, 1:58:11 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Sperimentazione 2
v11 v12 1 1 2 {{{#!nasm 3 segment .text ; segmento "testo" (istruzioni) 4 global main ; nome convenzionale 5 extern printf, exit 6 7 main: 8 mov eax, 24 9 add eax, 42 10 mov [x], eax 11 12 push dword [x] 13 push fmt 14 call printf 15 16 push 0 17 call exit 18 19 segment .data ; segmento dati 20 x: dw 0 21 22 segment .rodata ; segmento dati in sola lettura 23 fmt: db 'Risultato: %d',10,0 24 25 }}} 26 27 2 28 3 29 * [source:trunk/syscall.asm@21 Esempio chiamata syscall in Linux]