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

📄 tskndp.asm

📁 一个多任务操作系统CTask的源代码 用C语言编写
💻 ASM
字号:
;
;	--- Version 2.2 90-10-12 10:38 ---
;
;	CTask - 80x87 Numeric Data Processor support
;
;	Public Domain Software written by
;		Thomas Wagner
;		Ferrari electronic Gmbh
;		Beusselstrasse 27
;		D-1000 Berlin 21
;		Germany
;
;	This file is new with version 2.1.
;
;	It contains support routines for the 80x87 NDP.
;	It will assemble to nothing if the NDP configuration flag
;	is FALSE.
;
	name	tskndp
;
	include	tsk.mac
;
	IF	NDP
	.tsk_model
;
	Pubfunc	tsk_check_ndp
;
	.tsk_code
;
;	tsk_check_ndp	Check for presence of NDP.
;
;	Returns 1 if NDP is present, 0 if not.
;
;	NOTE: Only the Equipment byte returned by INT 11 is checked. 
;	No real check for the presence of an 80x87 is done.
;	An actual check would be safer, but there seem to be a number
;	of machines where executing NDP-instructions without an NDP
;	installed will hang the machine. To avoid this, we rely on
;	the equip byte actually reflecting the true configuration.
;	Since most other programs using the NDP will do the same
;	(including Turbo C, and possibly MS C, too), there seems to
;	be not much gain in more thorough checks. If you disagree,
;	and can supply "safe" checks for an NDP, please send me
;	your modifications.
;
Localfunc tsk_check_ndp
;
	int	11h			; equipment
	and	ax,2
	jz	no_ndp
	mov	ax,1
	ret
;
no_ndp:
	xor	ax,ax
	ret
;
tsk_check_ndp	endp
;
	.tsk_ecode
	ENDIF
	end

⌨️ 快捷键说明

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