[原]linux-32位汇编

; nasm  -f

;ld -s -o

;gcc -Wall -nostdlib -s obj

BITS 32

GLOBAL _start

SECTION .text

_start:

      mov  eax, 1

      mov ebx, 42

      int 0x80


nasm -f elf file

ld -s -o hello file.o


./hello


eax ebx ecx edx esi edi



nasm file

ndisasm -u file 


objdump -d file

作者:liyong748 发表于2012/3/16 0:19:59 原文链接
阅读:242 评论:0 查看评论
posted @ 2012-03-16 00:20  liyonghelpme  阅读(127)  评论(0编辑  收藏  举报