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

HelloWorld - ainda não funcionou



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