]> cloudbase.mooo.com Git - z180-stamp.git/commitdiff
change common base from C000 to F000. loadcpm3 bugfixes
authorLeo C <erbl259-lmu@yahoo.de>
Fri, 12 Jun 2015 09:05:06 +0000 (11:05 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Fri, 12 Jun 2015 09:05:06 +0000 (11:05 +0200)
avr/cmd_loadcpm3.c
avr/command_tbl.c
z180/config.inc

index da1be375526aee63bce44ac656c490d2ddaa2c42..324a40dc7a2d92857d4b07593506a83e2795a574 100644 (file)
@@ -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;
index 72a87b9bbe2bd1dec5e63b5704ee9c9aaf5ff456..526588c2084ab434e75aa73a7eaf87fbc75c076b 100644 (file)
@@ -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(
index 1d0709d85016f150b1639dfd620847b8f300eb90..d10b113161986eca7a87f5837d8770ccc23a30de 100644 (file)
@@ -46,7 +46,7 @@ PRT_PRE               equ     20              ;PRT prescaler
 ;-----------------------------------------------------\r
 ; MMU\r
 \r
-COMMON_SIZE    equ     16*1024         ;Common Area size in bytes\r
+COMMON_SIZE    equ     4*1024          ;Common Area size in bytes\r
                                        ;must be multiple of 4K\r
 if (COMMON_SIZE mod 1000h)\r
        .printx COMMON_SIZE not multiple of 4K!\r