[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico]
[Índice de assunto]
Re: HelloWorld - ainda não funcionou
- Subject: Re: HelloWorld - ainda não funcionou
- From: Francisco Reverbel <reverbel@xxxxxxxxxx>
- Date: Thu, 27 Feb 2003 17:47:09 -0300 (EST)
Deve haver alguma coisa errada no seu ambiente...
Eu testei de novo, agora em outra máquina (o epicurus, da rede Linux),
e o programa funcionou.
Reverbel
On Wed, 26 Feb 2003, Tiago Motta Jorge wrote:
> 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
>
>
>