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

📄 cdtsr.doc

📁 播放CDROM音乐的内存驻留程序
💻 DOC
字号:

                         Resident CD-Audio player (p)

                           I.   What is it ?
                           II.  Why do I need it ?
                           III. How does it works ?
                           IV.  About the source
                           V.   About P-ware




I. What is it ?....
CDTSR.COM is a resident program which alows you to have control over your
CD-Rom drive as CD-Player whitout starting a program.

II. Why do I need it ?....
-If you use CDTSR.COM just as it is, just put CDTSR.COM in your autoexec.bat
 (LH CDTSR.COM also works). Now you have a CD-Player in your memory, without
 walking to CD-Player. Just press PrintScreen : watch what happens.
-If you are interested in the source, well you're lucky then. In the source
 ther're several standard routines present which give total acces to your
 CD-Rom drive. So if you want to write your own applications, this is the
 reason.

III. How does it works ?....
After loading the program into memory, press PrintScreen. That's All !!
The program the responces to you in three different ways :
    1. If no disc is present it will do nothing (or if it's not initialized yet)
    2. If a disc is present, but no sound is heard, it wil start playing at
       track 1
    3. If a disc is present and sound is heard, it will jump to the next
       track, or start over again if the last track was played
If you eject the disk while playing, it will give NO problems, since the
DiscPresence also checks for a media change. It will simply start at point 2
,after displaying the message "No disc present", of course the message
should be "Media changed", but the less bytes in the program, the more in
DOS.

IV. About the source....
The program is written in TASM 3.2 and linked with TLINK 5.1. It's written
with the standard DOS models, so perhaps you must change some things when
using MASM (.386 instead of P386). It's written as a .COM file to keep it
as small as possible and to make highloading possible. The temporary part
gets the first CD-Rom drive (no checking if no CD-Rom found), and installs
the interrupt vector 05h (PrintScreen). When the interrupt is activated
the program first checks wheter there is a disc present. Then it will
check if noise is send to the output. With this information it takes
action (see above). In the resident part of the program ther're various
standard routines available, for use in other programs. To use them you
also must copy the STRUCtures and the CONTROL????? blocks to your program.

V. About P-ware....
(p) Ware means Public Domain. So everybody can use/copy/spread it without
paying any dollars. As the author I would like to add that I'm not responsible
for any damage or malfunction at any device. I have placed it in my
autoexec.bat and my computer is still working (80386), so don't be afraid
something nasty will happen. Also the source file is included, so if you
check the source file, you will see that ther's nothing iggy done.

As I believe in (p) Ware -> Give credits to the original author, when you
use the routines in other programs

Michiel Kuperus.

⌨️ 快捷键说明

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