汇编语言程序设计的笔记(1)
>我来写笔记
按有用程度 按页码先后 最新笔记
-
第4章 汇编语言程序范例
Sherlock (希斯克利夫又何必硬装作是林顿)
#cpuid.s to extract the processor Vendor ID #as -o cpuid.o cpuid.s #ld -o cpuid cpuid.o #./cpuid .section .data output: .ascii "The processor Vendor ID is 'XXXXXXXXXXXX' \n" .section .text .global _start _start: #call CPUID movl $0, %eax cpuid #ID is in ebx,ecx and edx movl $output, %edi movl %ebx, 28(%edi) movl %ecx, 32(%edi) movl %edx, 36(%edi) #syscall 4 is write... (更多)2011-12-13 16:11:19 回应

