diff options
author | Leo C | 2015-05-06 12:18:39 +0200 |
---|---|---|
committer | Leo C | 2015-05-06 12:18:39 +0200 |
commit | c0abd68b350ffd9852923a66f3ee6c315c94813a (patch) | |
tree | ab4a7019bc6e0d30311c73df94c03e6fe559b24a /avr/command_tbl.c | |
parent | 2fa1a7069a9709f8d61a198cec1b1d9b2e275fe1 (diff) | |
download | z180-stamp-c0abd68b350ffd9852923a66f3ee6c315c94813a.zip |
New command 'loadcpm3' - load 'CPM3.SYS' file. setenv() bugfix
Arg 1 of function setenv() is a __MEMX pointer on AVR.
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r-- | avr/command_tbl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 23d0803..238f132 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -16,6 +16,7 @@ extern command_ret_t do_env_default(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_env_set(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_env_save(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadf(cmd_tbl_t *, int, int, char * const []); +extern command_ret_t do_loadcpm3(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadihex(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_go(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_restart(cmd_tbl_t *, int, int, char * const []); @@ -127,6 +128,14 @@ CMD_TBL_ITEM( "" ), CMD_TBL_ITEM( + loadcpm3, 3, 0, do_loadcpm3, + "load CPM3.SYS file", + "[offset] [filename]\n" + " - Load CP/M 3 system file from FAT filesystem. This command makes\n" + " CPMLDR superfluous. Default filename is '"CONFIG_PATH_CPM3SYS"', but\n" + " uses environment variable '"ENV_PATH_CPM3SYS"', if set." +), +CMD_TBL_ITEM( loadi, 2, 0, do_loadihex, "load intel hex file over serial line", "[[-]offset]\n" |