[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico]
[Índice de assunto]
HelloWorld - ainda não funcionou
- Subject: HelloWorld - ainda não funcionou
- From: Tiago Motta Jorge <tigod@xxxxxxxxxxxxxxxx>
- Date: Wed, 26 Feb 2003 18:26:09 -0300
Professor,
Veja o que acontece:
$ cat hello.asm
section .data
msg db "Hello, World!", 0xa
len equ $-msg
section .text
global _start
_start: mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov ebx, 0
mov eax, 1
int 0x80
$ nasm -f elf hello.asm
$ ld -s -o hello hello.o
$ hello
º¹»`$
Estou usando Red Hat Linux - v 7.1
Kernel 2-4-2