_getdrvs.asm

来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 40 行

ASM
40
字号
	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 + =
减小字号Ctrl + -
显示快捷键?