[原]linux32位汇编

; 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 查看评论
原文地址:https://www.cnblogs.com/liyonghelpme/p/4273583.html