[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico] [Índice de assunto]

Re: HelloWorld - ainda não funcionou



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
> 
> 
>