⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eg0420.asm

📁 宏汇编器
💻 ASM
字号:
;eg0420.asm
	.686
	.model flat,stdcall
	option casemap:none
	includelib kernel32.lib
ExitProcess	proto,:DWORD
GetStdHandle	proto,:DWORD
WriteConsoleA	proto,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WriteConsole	equ <WriteConsoleA>
STD_OUTPUT_HANDLE	= -11
	.data
outhandle	dword ?
outbuffer	byte 'The processor vendor ID is ', 12 dup(0)
outbufsize	= sizeof outbuffer
outsize	dd ?
	.code
start:
	mov eax,0
	cpuid	; 执行处理器识别指令
	mov dword ptr outbuffer+outbufsize-12,ebx
	mov dword ptr outbuffer+outbufsize-8,edx
	mov dword ptr outbuffer+outbufsize-4,ecx
	; 获得输出句柄
	invoke GetStdHandle,STD_OUTPUT_HANDLE
	mov outhandle,eax
	; 显示信息
	invoke WriteConsole,outhandle,addr outbuffer,outbufsize,addr outsize,0
	; 退出
	invoke ExitProcess,0
	end start

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -