Introduction - If you have any usage issues, please Google them yourself
section .data .data
mensaje db "Hola con NASM" mensaje: .ascii "hola con GAS\n"
mensaje_SIZE equ $ mensaje mensaje_SIZE = . mensaje
section .text .text
global _start .globl _start
_start: _start:
mov ecx, mensaje movl $mensaje, ecx
mov edx, mensaje_SIZE movl $mensaje_SIZE, edx
mov eax, 4 movl $4, eax
mov ebx, 1 movl $1, ebx
int 80h int $0x80
mov ebx,0 movl $0, ebx
mov eax,1 movl $1, eax
int 0x80 int $0x80