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

📄 _getdrvs.asm

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 ASM
字号:
	include ..\cwlib.inc
	scode

;-------------------------------------------------------------------------
;
;Build a list of all valid drives on the system.
;
;Calling:
;
;GetDrives(buffer);
;
;On Entry:
;
;buffer	- Address to build list of drives.
;
;On Exit:
;
;EAX	- number of drives.
;
;ALL other registers preserved.
;
;The drive list uses real drive codes (not ASCII). Each entry uses 1 byte
;and the list is terminated with -1.
;
_GetDrives	proc	syscall buffer:dword
	public _GetDrives
	pushm	ecx,edx
	mov	edx,buffer
	call	GetDrives
	mov	eax,ecx
	popm	ecx,edx
	ret
_GetDrives	endp


	efile
	end


⌨️ 快捷键说明

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