diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2004-10-04 17:17:30 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2004-10-04 17:17:30 +0000 |
commit | e9ec2f88b65fb8e4e37e896f53697a2aa8ad2ff5 (patch) | |
tree | 53fef27e844c65e8fa6d3675a0688879fe5a5459 | |
parent | 1a5d4090159df833e6b5bd486c9bda35cd242f6b (diff) | |
download | memedit-e9ec2f88b65fb8e4e37e896f53697a2aa8ad2ff5.tar.gz memedit-e9ec2f88b65fb8e4e37e896f53697a2aa8ad2ff5.tar.xz |
added more help
-rw-r--r-- | fpgaedit.y | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -149,12 +149,26 @@ void print_help (void) { printf ("\n"); printf ("open <file> open a file\n"); printf ("close close currently opened file\n"); + printf ("exit, quit quit\n"); + printf ("help show this help text\n"); + printf ("\n"); printf ("md [<start> [<end>]] mem display from current position\n"); printf (" or from <start> to <end>\n"); printf ("mm <offset> <val1> .. <valN> modify from value <offset>\n"); printf ("<var> = <expr> set variable <var> to <expr>\n"); printf ("<var> print variable <var>\n"); printf ("\n"); + printf ("<var1> add <var2> add variables\n"); + printf ("<var1> sub <var2> substract variables\n"); + printf ("<var1> mul <var2> multiplicate variables\n"); + printf ("<var1> div <var2> divide variables\n"); + printf ("<var1> rshift <var2> shift (or >>)\n"); + printf ("<var1> lshift <var2> shift (or >> or shift)\n"); + printf ("\n"); + printf ("Variables can be entered as decimals (without prefix), hex (prefixed with 0x)\n"); + printf ("oct (0o) or bin (0b). For mm and md byte, word and long word access can be \n"); + printf ("enabled with .b, .w and .l\n"); + printf ("\n"); } void set_variable (char *param, int val) { @@ -260,4 +274,5 @@ void hex_output (int offset, int len, int count) { int yylex (void) { printf ("\nPROMPT>"); zzlex (); -}
\ No newline at end of file +} + |