summaryrefslogtreecommitdiff
path: root/avr/cmd_loadcpm3.c
diff options
context:
space:
mode:
authorLeo C2016-06-21 15:10:40 +0200
committerLeo C2016-06-21 17:14:07 +0200
commit2d914b45c43c9a4c986e88428d1e28c0710ae298 (patch)
treed6d479030247a0699fdf9f41aae547b56068ca14 /avr/cmd_loadcpm3.c
parentfcd2239eb2849432269ba4456718b657fdff3972 (diff)
downloadz180-stamp-2d914b45c43c9a4c986e88428d1e28c0710ae298.zip
aval_arg() for all commands
Diffstat (limited to 'avr/cmd_loadcpm3.c')
-rw-r--r--avr/cmd_loadcpm3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/avr/cmd_loadcpm3.c b/avr/cmd_loadcpm3.c
index 02ec47f..e6e2cdc 100644
--- a/avr/cmd_loadcpm3.c
+++ b/avr/cmd_loadcpm3.c
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2015 Leo C. <erbl259-lmu@yahoo.de>
+ * (C) Copyright 2015,2016 Leo C. <erbl259-lmu@yahoo.de>
*
* SPDX-License-Identifier: GPL-2.0
*/
@@ -9,7 +9,6 @@
*/
#include "common.h"
-#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
@@ -17,6 +16,7 @@
#include "command.h"
#include "env.h"
#include "ff.h"
+#include "eval_arg.h"
#include "con-utils.h"
#include "z80-if.h"
#include "debug.h"
@@ -88,9 +88,9 @@ command_ret_t do_loadcpm3(cmd_tbl_t *cmdtp, int flag, int argc, char * const arg
CONFIG_CPM3_BANKED_BASE);
if (argc > 3)
- banked_base = strtoul(argv[3], NULL, 16);
+ banked_base = eval_arg(argv[3], NULL);
if (argc > 2)
- common_base = strtoul(argv[2], NULL, 16);
+ common_base = eval_arg(argv[2], NULL);
fname = getenv_str(PSTR(ENV_CPM3_SYSFILE));
if (argc > 1) {