HelloWorld

ASM,C,LUA,LINUX(gentoo)
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年10月7日

摘要: 32bit 汇编函数调用参数传递是通过堆栈来实现的。 1 .section .data 2 output: 3 .asciz "The processor Vendor ID is %s\n" 4 .section .bss 5 .lcomm buffer,12 6 .section .text 7 .globl main 8 main: 9 movl $0,%eax10 cpuid11 movl $buffer, %edi12 movl %ebx, (%edi)13 movl %edx, 4(%edi)14 movl %ecx,... 阅读全文

posted @ 2011-10-07 17:58 光铭 阅读(4616) 评论(0) 推荐(0) 编辑