-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.inc
59 lines (57 loc) · 2.35 KB
/
help.inc
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
_user_code _help
xor eax, eax
mov al, _SYSCALL_ARGCPY
int 030H
cmp dword [_USER_SHELL_ARGUMENT_VIRTUAL], 0H
jz _help_start
xor eax, eax
mov al, _SYSCALL_WRITE
mov ebx, _TELETYPE_CURRENT
mov ecx, _help_invalid
mov edx, _help_invalid.sizeof
int 030H
mov ebx, (not 0H)
jmp _help_exit
_help_start:
xor eax, eax
mov al, _SYSCALL_WRITE
mov ebx, _TELETYPE_CURRENT
mov ecx, _help_command
mov edx, _help_command.sizeof
int 030H
xor ebx, ebx
_help_exit:
xor eax, eax
mov al, _SYSCALL_EXIT
int 030H
_help_command string\
"achiu-au, KFS version 1.0.5", 00AH,\
"To switch TTY enter CTRL+Fn or left/right window", 00AH,\
"help - display help", 00AH,\
"copyright - show the copyright", 00AH,\
"clear - clear the current screen and the history", 00AH,\
"fg/bg c - change foreground/background to c", 00AH,\
" * [black,blue,green,cyan,red,magenta,brown,light]", 00AH,\
"copy ""str"" - copy the string to the clipboard", 00AH,\
" * to include "" in string, double it", 00AH,\
"usertest - test new stuff (segfault, undefined opcode ...)", 00AH,\
"invopcode - show if signal invalid opcode works", 00AH,\
"segvtest - experiment a segmentation fault", 00AH,\
"bomb - test fork bomb", 00AH,\
"sigint - use sigint to quit the program", 00AH,\
"showpid - show parent and process pid", 00AH,\
"sockpoc - test the server - client idiom", 00AH,\
"sqrt - simple routine to test if sse is present", 00AH,\
"md5 hash - hash input string to md5", 00AH,\
"kill signal pid - send the signal to the process", 00AH,\
"uid - show the current uid", 00AH,\
"uname - show the version of the OS", 00AH,\
"hostname - show the hostname", 00AH,\
"history on/off - enable/disable history", 00AH,\
"print str - print in loop a string", 00AH,\
"resolution x y - try to change to resolution with the given value", 00AH,\
"reboot - reboot the machine", 00AH,\
"shutdown - shutdown the machine", 00AH,\
"exit - exit the shell", 00AH
_help_invalid string "help invalid usage", 00AH
end _user_code