diff options
Diffstat (limited to 'avr')
-rw-r--r-- | avr/cmd_loadcpm3.c | 6 | ||||
-rw-r--r-- | avr/command_tbl.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/avr/cmd_loadcpm3.c b/avr/cmd_loadcpm3.c index da1be37..324a40d 100644 --- a/avr/cmd_loadcpm3.c +++ b/avr/cmd_loadcpm3.c @@ -84,11 +84,11 @@ command_ret_t do_loadcpm3(cmd_tbl_t *cmdtp, int flag, int argc, char * const arg if (argc > 3) banked_base = strtoul(argv[3], NULL, 16); if (argc > 2) - banked_base = strtoul(argv[2], NULL, 16); + common_base = strtoul(argv[2], NULL, 16); fname = getenv(PSTR(ENV_CPM3_SYSFILE)); - if (argc > 2) { - fname = argv[2]; + if (argc > 1) { + fname = argv[1]; } if (fname == NULL || *fname == '\0') fname = default_fname; diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 72a87b9..526588c 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -151,7 +151,7 @@ CMD_TBL_ITEM( CMD_TBL_ITEM( loadcpm3, 3, 0, do_loadcpm3, "load CPM3.SYS file", - "[filename] [common base] [banked base]] \n" + "[filename [common-base [banked-base]]] \n" " Load CP/M 3 system file from FAT filesystem. This command makes\n" " CPMLDR superfluous. Uses the following environment variable if set:\n" " '"ENV_CPM3_SYSFILE"' File to load. Default is '"CONFIG_CPM3_SYSFILE"'.\n" @@ -206,7 +206,11 @@ CMD_TBL_ITEM( CMD_TBL_ITEM( connect, 1, 0, do_console, "Connect to CPU console i/o", - "" + "\n" + " - type the escape character followed by Q to close the connection, \n" + " or followed by ? to see other options. The default escape character \n" + " is Ctrl-^ (0x1E). It can be changed by setting env var '"ENV_ESC_CHAR"'." + ), CMD_TBL_ITEM( |