汇编的hello world
2009-10-28 17:59
246 查看
调用linux system call
.section .rodata
output:
.string "Hello, World/n"
.section .text
.globl _start
nop
movl $4, %eax
movl $1, %ebx
movl $output, %ecx
movl $13, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
使用c的函数printf
.section .rodata
output:
.string "Hello, World/n"
.section .text
.globl _start
nop
pushl $output
call printf
addl $4, %esp
pushl $0
call exit
.section .rodata
output:
.string "Hello, World/n"
.section .text
.globl _start
nop
movl $4, %eax
movl $1, %ebx
movl $output, %ecx
movl $13, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
使用c的函数printf
.section .rodata
output:
.string "Hello, World/n"
.section .text
.globl _start
nop
pushl $output
call printf
addl $4, %esp
pushl $0
call exit
相关文章推荐
- [32位汇编系列]001- Hello World
- 汇编实验之hello world是怎么工作的
- 汇编语言的Hello World
- 汇编Hello World
- 汇编程序hello world
- mac下汇编hello world
- 汇编语言编写的Hello World
- 汇编 hello world
- 汇编程序的结构——Hello World !
- 汇编语言hello world 代码实现
- Win32汇编入门Hello World程序
- mips汇编打印 hello world
- 汇编版hello world (write()与_exit()系统调用) [李园7舍_404]
- 汇编学习笔记:第一个程序,Hello World!!!
- 那些年,我们一起学过的汇编----之“Hello World!”
- 第一个汇编程序学习"Hello world!"
- 汇编语言的Hello world
- Hello World——Linux汇编
- 汇编 Hello World
- 汇编hello world