-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.c
More file actions
23 lines (21 loc) · 848 Bytes
/
help.c
File metadata and controls
23 lines (21 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*******************************************************************************
> File Name: help.c
> Author: sillyplus
> Mail: oi_boy@sina.cn
> Created Time: Tue Apr 7 09:59:37 2015
******************************************************************************/
#include "user_program.h"
#include "utils_32cc.h"
int main() {
const char *msg =
"Type the command name and press 'Enter'\r\n"
" help - Print this message\r\n"
" ls - List user programs\r\n"
" time - Print current time\r\n"
" date - Print current date\r\n"
" int_demo - A demo using int33~int36\r\n"
" reboot - Reboot\r\n"
" <names> - Run user programs (a comma seperated list)\r\n"
"Example: ls,date,time<Enter>\r\n";
write_str_current(msg, __builtin_strlen(msg));
}