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

📄 i16_raw_test_a20.s

📁 GNU Mach 微内核源代码, 基于美国卡内基美隆大学的 Mach 研究项目
💻 S
字号:
#include <mach/machine/asm.h>	.text	.code16/* * Test the A20 address line; return true if it is enabled. */ENTRY(i16_raw_test_a20)	xorw	%ax,%ax	movw	%ax,%fs	notw	%ax	movw	%ax,%gs	/* See if the values in already in the corresponding locations	   are the same.  */	movw	%fs:0,%ax	cmpw	%gs:16,%ax	jnz	1f	/* Yes; try changing one and see if they're still the same.  */	movw	%ax,%dx	notw	%ax	movw	%ax,%fs:0	cmpw	%gs:16,%ax	movw	%dx,%fs:0	jnz	1f	xorl	%eax,%eax	ret1:	movl	$1,%eax	ret

⌨️ 快捷键说明

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