China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 10:58
中国DOS联盟论坛 » 论坛回收站 » Please provide the specific program content that needs to be analyzed so that I can help you translate and analyze it. View 1,785 Replies 2
Original Poster Posted 2009-10-21 14:12 ·  中国 广东 广州 电信
新手上路
Credits 6
Posts 5
Joined 2009-08-04 00:12
16-year member
UID 149812
Gender Male
Status Offline
@echo off
@echo. ......... Audio Functionality Testing ........ !!!
cd c:\km10nbu\sigmatel
set test=Audio function Test
del smat.*
physmem >temp.txt
copy set.txt+temp.txt temp.bat
call temp.bat
dos4gw smat21 km10nbu.ini 0x%temp%
if errorlevel 1 goto Fail
set test=Audio Port Sense Test
find "Doing port sense with 0xD,0xE,0xF,0x10 ports occupied" smat.000
if errorlevel 1 goto Fail
find "Doing port sense with 0xE,0xF ports occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: Pin Widget NID 0x10 port not occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: Pin Widget NID 0x0D port not occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: 7 test runs passed" smat.000
if errorlevel 1 goto Fail
goto Pass

:Fail
set status=FAIL
set code=Q01
@echo. %test% %status%
goto end

ass
set status=PASS
cls
@echo. ......... Audio Functionality Test Passed ........ !!!

:END
Floor 2 Posted 2009-10-21 22:40 ·  中国 浙江 杭州 电信
新手上路
Credits 1
Posts 1
Joined 2009-10-21 22:33
16-year member
UID 153473
Gender Male
Status Offline
Floor 3 Posted 2009-10-22 14:43 ·  中国 广东 广州 电信
新手上路
Credits 6
Posts 5
Joined 2009-08-04 00:12
16-year member
UID 149812
Gender Male
Status Offline
This is a batch script for testing the AUDIO of the motherboard! Used to judge the return value. The real test program is still in other directories
Forum Jump: