]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/command_tbl.c
New command 'loadcpm3' - load 'CPM3.SYS' file. setenv() bugfix
[z180-stamp.git] / avr / command_tbl.c
index 23d080372dd2db3fa950e5a63f410a27b5438de5..238f132012b811466f69e8346cbde6ec4f4dfdca 100644 (file)
@@ -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 []);
@@ -126,6 +127,14 @@ CMD_TBL_ITEM(
        "load srec_cat prepared image from controller flash",
        ""
 ),
+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",