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

📄 det_x86.asm

📁 open arj source
💻 ASM
字号:
;*;* $Id: det_x86.asm,v 1.1.1.1 2002/03/28 00:02:20 andrew_belov Exp $;* ---------------------------------------------------------------------------;* This code uses the  classic way  of determining what Intel x86 CPU is used.;* The exact author is unknown.;*INCLUDE         ASM_INCL.INCpublic          detect_x86.CODE;*;* Returns one of the following values for corresponding CPU types:;*;*    0x0086 -> 8086/8088;*    0x0186 -> 80186/80188;*    0x0286 -> 80286;*    0x0386 -> 80386 and higher;*detect_x86      proc		pushf		xor	ax, ax		push	ax		popf		pushf		pop	ax		and	ax, 0F000h		cmp	ax, 0F000h		jnz	test_386		push	cx		mov	ax, 0FFFFh		mov	cl, 21h		shl	ax, cl		pop	cx		jnz	l186		mov	ax, 86h		popf		jmp	short donel186:		mov	ax, 186h		popf		jmp	short donetest_386:		mov	ax, 7000h		push	ax		popf		pushf		pop	ax		and	ax, 7000h		jnz	l386		mov	ax, 286h		popf		jmp	short donel386:		mov	ax, 386h		popf		jmp	short $+2done:                retdetect_x86      endp        	end

⌨️ 快捷键说明

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