builtins
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# gfx/common/ide/builtins $Revision: 1.1.1.1 $
#
# builtins - ide builtin functions
#
# First column is the name
# Second column is the type:
# CMD for command
# SCMD for command expecting ide-parsed args
# DCMD for command expecting a communication struct arg
# INT for integer constant
# STR for string constant
# Third column is value:
# CMD value is the name of the function to call with char * argv
# STR value is the quoted string
# INT value is the integer
# SCMD value is the name of the function to call with sym_t * argv
# DCMD value is the name of the function to call with a comm struct ptr.
#
# Columns must be separated by exactly one TAB!
ON INT 1
on INT 1
OFF INT 0
off INT 0
TRUE INT 1
true INT 1
FALSE INT 0
false INT 0
INFO INT 1
ERR_SIMPLE INT 2
ERR_SEVERE INT 4
DEBUG INT 8
DEFAULT_PRINT_MSGS INT DEFAULT_PRINT_MSGS
DEFAULT_LOG_MSGS INT DEFAULT_LOG_MSGS
DEFAULT_EXIT_MSGS INT DEFAULT_EXIT_MSGS
TRAP_NONE INT 1
TRAP_SEVERE INT 2
TRAP_ALL INT 3
PS1 STR "ide>> "
PS2 STR "more>> "
#boot CMD boot boot [-f FILE] [-n] [ARGS]
#dump CMD dump dump [-(b|h|w)] [-(o|d|u|x|c|B)] RANGE
dumpsym SCMD _dodumpsym
echo SCMD _doprint echo [\"STRING\"|VAL ...]
exit SCMD _doexit exit [VAL]
quit SCMD _doexit exit [VAL]
#fill CMD fill fill [-(b|h|w)] [-v VAL] RANGE
help SCMD _dohelp displays summary of commands and statements
printenv CMD printenv printenv [ENV_VAR_LIST]
printf SCMD _doprintf printf \"FORMAT\" [ARG1 ARG2...]
#read SCMD _doread read [VAR ...]
setenv CMD setenv setenv ENV_VAR STRING
source CMD _dosource source SOURCE_PATH
#spin CMD spin spin [[-c COUNT] [-v VAL] [-(r|w)[+](b|h|w) ADDR]]*
stat SCMD showmstats
testcmd SCMD _dotestcmd
unsetenv CMD dounsetenv unsetenv ENV_VAR
status CMD status status [RESERVE_VAR_LIST]
reset CMD reset reset RESERVE VARS to their default values