X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Foptions.c;h=3616f51d43ff2a3d9998cef387f825f6034eb08b;hb=dd2261ab6cd2b8ddc9fd0078c995ec943fee8dbd;hp=c5833b37ad63270ed24c62d365dd5dc76bbeec6d;hpb=0f98327ed353861d9958cf77a0e00549d5147b56;p=emu8051.git diff --git a/src/options.c b/src/options.c index c5833b3..3616f51 100644 --- a/src/options.c +++ b/src/options.c @@ -46,7 +46,7 @@ static const char args_doc[] = "[FILENAME]"; static struct argp_option argp_options[] = { {"debug", 'd', "level", 0, "Produce debugging output" }, {"iram", 'i', "size", 0, "Set internal ram size" }, - {"xram", 'x', "size", 0, "Set external ram size" }, + {"xram", 'x', "size", 0, "Set external ram size (default is 1024)" }, { 0 } }; @@ -87,10 +87,10 @@ decode_memory_size(char *arg, struct argp_state *state, int memid) int *dest; if (memid == INT_MEM_ID) { - max_size = INT_MEM_SIZE; + max_size = INT_MEM_MAX_SIZE; dest = &options.iram_size; } else { - max_size = EXT_MEM_SIZE; + max_size = EXT_MEM_MAX_SIZE; dest = &options.xram_size; } @@ -155,8 +155,8 @@ parse_command_line_options(int argc, char *argv[]) /* Setting default values. */ options.filename = NULL; - options.iram_size = INT_MEM_SIZE; - options.xram_size = EXT_MEM_SIZE; + options.iram_size = INT_MEM_MAX_SIZE; + options.xram_size = EXT_MEM_DEFAULT_SIZE; /* Parse our arguments. */ argp_parse(&argp, argc, argv, 0, 0, NULL);