Chinaunix首页 | 论坛 | 博客
  • 博客访问: 399128
  • 博文数量: 101
  • 博客积分: 2207
  • 博客等级: 大尉
  • 技术积分: 2508
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-19 20:45
文章分类

全部博文(101)

文章存档

2013年(15)

2012年(86)

我的朋友

分类: LINUX

2012-12-29 22:20:32

nasm -f elf f.asm
ld -m elf_i386 -s -o f.out f.o

点击(此处)折叠或打开

  1. section.data
  2. hello: db 'Hello world!', 10
  3. helloLen: equ 13
  4. section .text
  5. global _start
  6. _start:
  7. mov eax, 4
  8. mov ebx, 1
  9. mov ecx, hello
  10. mov edx, helloLen
  11. int 80h
  12. mov eax, 1
  13. mov ebx, 0
  14. int 80h

阅读(515) | 评论(0) | 转发(1) |
0

上一篇:python资源

下一篇:nasm

给主人留下些什么吧!~~