nasm -f elf f.asm
ld -m elf_i386 -s -o f.out f.o
- section.data
- hello: db 'Hello world!', 10
- helloLen: equ 13
- section .text
- global _start
- _start:
- mov eax, 4
- mov ebx, 1
- mov ecx, hello
- mov edx, helloLen
- int 80h
- mov eax, 1
- mov ebx, 0
- int 80h
阅读(554) | 评论(0) | 转发(1) |