PC技术指导:汇编源码free

文章作者 100test 发表时间 2007:03:10 17:51:23
来源 100Test.Com百考试题网


name free
page 60,132
title free --- report free space on disk
. free --- a utility to report free space on
. the default or 0selected disk drive.
.
. requires pc-dos or ms-dos 2.0.
.
. used in the form:
. a> free [unit:]
. (item in square brackets is optional)
.
. version 1.0 july 4, 1984
. copyright (c) 1984 by ray duncan
. may be freely reproduced for non-commercial use.
cr equ 0dh .ascii carriage return
lf equ 0ah .ascii line feed
blank equ 20h .ascii space code
eom equ $ .end of string marker
. here we define a dummy segment containing labels
. for the default file control block and the command tail buffer,
. so that the main program can access those locations.
.
psp segment para public psp
org 05ch
fcb label byte .default file control block
org 080h
command label byte .default command buffer
psp ends
cseg segment para public code
assume cs:cseg,ds:psp,es:data,ss:stack
get_drive proc near .get drive 0selection, if any,
.otherwise obtain the identity
.of the current disk drive.
.return drive (1=a, 2=b, etc) in al.
.
mov al,fcb .pick up the drive code, parsed
.by dos into the default file
.control block.
or al,al .is it the default?
jnz get_drive1 .no, use it

相关文章


Excel安全技巧之大集锦
计算机应用的基础知识:字符表示
计算机应用的基础知识:文本表示综述及其改进
浙江省高校计算机等级考试-大纲(一级ForWindows98)
PC技术指导:汇编源码free
计算机基础知识格式化软盘
2006年4月全国计算机等级考试三级PC技术考试-大纲
计算机基础知识查找文件和文件夹
三级考试-大纲(PC技术)
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛