]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/command_tbl.c
Get common_base from cpm3.sys file. Update default environment (BOOTCMD)
[z180-stamp.git] / avr / command_tbl.c
index eb0d84f6af1510017757d52a433d7fadd9c29016..e24fcbbd2d0652b8aee8554b1b469bc375bd2f74 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
  *
- * SPDX-License-Identifier:    GPL-2.0+
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include "common.h"
@@ -25,6 +25,8 @@ 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 []);
 extern command_ret_t do_console(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_dump_mem(cmd_tbl_t *, int, int, char * const []);
+extern command_ret_t do_mem_mm_avr(cmd_tbl_t *, int, int, char * const []);
+extern command_ret_t do_mem_nm_avr(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_eep_cp(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_busreq_pulse(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_date(cmd_tbl_t *, int, int, char * const []);
@@ -48,7 +50,7 @@ cmd_tbl_t cmd_tbl[] = {
 CMD_TBL_ITEM(
        date,   2,      1,      do_date,
        "get/set date & time",
-       "[MMDDhhmm[[CC]YY][.ss]]\ndate reset\n"
+       "[MMDDhhmm[[CC]YY][.ss]]\n"
        "  - without arguments: print date & time\n"
        "  - with numeric argument: set the system date & time\n"
 ),
@@ -75,6 +77,16 @@ CMD_TBL_ITEM(
        "EEPROM copy",
        "source target count"
 ),
+CMD_TBL_ITEM(
+       !mm,    2,      1,      do_mem_mm_avr,
+       "avr memory modify (auto-incrementing address)",
+       "address"
+),
+CMD_TBL_ITEM(
+       !nm,    2,      1,      do_mem_nm_avr,
+       "avr memory modify (constant address)",
+       "address"
+),
 #endif
 CMD_TBL_ITEM(
        mstep,  2,      1,      do_busreq_pulse,
@@ -139,10 +151,14 @@ CMD_TBL_ITEM(
 CMD_TBL_ITEM(
        loadcpm3, 3,    0,      do_loadcpm3,
        "load CPM3.SYS file",
-       "[offset] [filename]\n"
+       "[filename [common-base [banked-base]]] \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."
+       "      CPMLDR superfluous. Uses the following environment variables if set:\n"
+       "         '"ENV_CPM3_SYSFILE"' File to load. Default is '"CONFIG_CPM3_SYSFILE"'.\n"
+       "         '"ENV_CPM3_BANKED_BASE"' Default is '"CONFIG_CPM3_BANKED_BASE_STR"'.\n"
+       "      Sets the following environment variables after loading:\n"
+       "         '"ENV_CPM3_COMMON_BASE"'\n"
+       "         '"ENV_STARTADDRESS"'"
 ),
 CMD_TBL_ITEM(
        loadi,  2,      0,      do_loadihex,
@@ -192,7 +208,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(