无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1458|回复: 3
打印 上一主题 下一主题

Diskem1x commands--E文原版

[复制链接]
跳转到指定楼层
1#
发表于 2002-1-15 22:04:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Diskem1x commands
All supported diskem1x command are listed below, click on it for more information.
/* todo: check commands and add more examples */
batch
boot
bootinfotable
cd
cls
dir
echo
emusegm
getkey
goto
help
keyval
loadsegm
onkey
print
quit
readtest
reboot
run
test
type
ver
[ Top ]
batch
Syntax: batch <filename> [<label>]
Run commands in batchfile <filename> starting at <label>
Labels are defined as ":Label"
Comment lines start with a ";"
Example:
Lets assume you have this file called "DE.CMD":
; de.cmd example file
print 123
:four
print 456
; eof de.cmd


The command "batch de.cmd" would return:   123
  456

The command "batch de.cmd four" would return:   456


[ Top ]
boot
Syntax: boot <#drvnum>
Boot from drive number <#drvnum> (in hex)
Example:
Command Description
boot 0 Boot from drive 0 (A:)
boot 80 Boot from harddisk (C:)

[ Top ]
bootinfotable
Syntax: bootinfotable
Modify the boot file by inserting a 56-byte "boot information table" at offset 8 in the file. The same ways as mkisofs does, see mkisofs manpage for more info. Only for "no-emulation" images.
Information table:
Offset Size Meaning
8 4 bytes LBA of primary volume descriptor
12 4 bytes LBA of boot file
16 4 bytes Boot file length in bytes
20 4 bytes 32-bit checksum
24 40 bytes Reserved

[ Top ]
cd
Syntax: cd <path>
Changes the current directory to .
Example:
Command Description
cd bin Goes to the "bin" directory
cd \ Goes back to the root directory

[ Top ]
cls
Syntax: cls (or clear)
Clears the screen and homes the cursor.
[ Top ]
dir
Syntax: dir (or ls)
Displays a list of files and subdirectories in a directory
[ Top ]
echo
Syntax: echo [on/off]
Turn command echoing on/off
[ Top ]
emusegm
Syntax: emusegm <xxxx>
Set the location for the emulator to <xxxx> (hex)
Example:
Command Description
Emusegm 8500 Emulator goes at 8500h:0000h

[ Top ]
getkey
Syntax: getkey [<timeout> <key>]
Wait until a key is pressed. When <timeout> seconds have passed and no key was pressed, the key is returned by getkey command.
Possible values for <key> are:
single character ascii values, like: a, 1 or !
Key "tags": tag key
esc escape
bs backspace
tab tab
entr Enter
spc spacebar
home home
up cursor up
left cursor left
pgup page up
right cursor right
end end
down cursor down
pgdn page down
ins insert
del delete
f1 f1
f2 f2
f3 f3
f4 f4
f5 f5
f6 f6
f7 f7
f8 f8
f9 f9
f10 f10
f11 f11
f12 f12
sf1 shift f1
sf2 shift f2
sf3 shift f3
sf4 shift f4
sf5 shift f5
sf6 shift f6
sf7 shift f7
sf8 shift f8
sf9 shift f9
sf10 shift f10
sf11 shift f11
sf12 shift f12
af1 alt f1
af2 alt f2
af3 alt f3
af4 alt f4
af5 alt f5
af6 alt f6
af7 alt f7
af8 alt f8
af9 alt f9
af10 alt f10
af11 alt f11
af12 alt f12
custom keyvalue (16-bit) in hex (scancode/ascii), like: 0x011b
Example:
Command Description
getkey 10 esc 10 sec. timeout with Escape key
getkey wait for keypress

[ Top ]
goto
Syntax: goto <label>
Lets assume you have this file called "DE.CMD":
; de.cmd example file
:start
print 123
goto start


This batch file would loop forever (useless example!)
[ Top ]
help
Syntax: help <command> (or ?)
Displays help about <command>
[ Top ]
keyval
Syntax: keyval
Prints the (hex) value of the last getkey

[ Top ]
loadsegm
Syntax: loadsegm <xxxx>
Set the load segment to <xxxx> (hex)
Example:
Command Description
loadsegm 2000 Load the image at 2000h:0000h

[ Top ]
onkey
Syntax: onkey <key> <command>
Checks if <key> has been pressed. If so <command> is executed.

[ Top ]
print
Syntax: print <message>
Prints the string <message> to the screen at current cursor position.
Example:
Command Description
print Testing Prints "Testing" to the screen
print Prints a "blank" line

[ Top ]
quit
Syntax: quit
When in a batchfile, stops batch processing.

[ Top ]
readtest
Syntax: readtest
Tests the CD by reading all blocks in the volume
[ Top ]
reboot
Syntax: reboot
Reboots the system (warmboot)
[ Top ]
run
Syntax: run <file>
Runs (emulates) an image.
Example:
Command Description
run elboot.img Emulates a floppy image and boot it
run w2ksect.dat Load "w2ksect.dat" and run it

[ Top ]
test
Syntax: test
This command is for development only
It is used for testing new commands...
Do not use it!
[ Top ]
type
Syntax: type (or cat) <file>
Displays the contents of text files.
Example:
Command Description
type readme.txt Displays the content of readme.txt file

[ Top ]
ver
Syntax: ver
Displays the diskem1x.bin version
2#
 楼主| 发表于 2002-1-16 09:42:44 | 只看该作者

Diskem1x commands--E文原版

不好吗?没有人提一把?
回复

使用道具 举报

3#
发表于 2002-1-16 10:00:43 | 只看该作者

Diskem1x commands--E文原版

up!
回复

使用道具 举报

4#
 楼主| 发表于 2002-1-16 22:06:41 | 只看该作者

Diskem1x commands--E文原版

提一把
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-2-23 07:15

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表