+2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+ * src/SDCCglobl.h: now --xram-size 0 works
+ * src/SDCCmain.c: now --xram-size 0 works
+
2003-01-29 <johan@balder>
* src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
int data_loc; /* interram start location */
int idata_loc; /* indirect address space */
int code_loc; /* code location start */
- int iram_size; /* internal ram size (used only for error checking) */
- int xram_size; /* external ram size (used only for error checking) */
+ int iram_size; /* internal ram size (used only for error checking) */
+ int xram_size; /* external ram size (used only for error checking) */
+ bool xram_size_set; /* since xram_size=0 is a possibility */
int code_size; /* code size (used only for error checking) */
};
if (strcmp (argv[i], OPTION_XRAM_SIZE) == 0)
{
options.xram_size = getIntArg(OPTION_IRAM_SIZE, argv, &i, argc);
+ options.xram_size_set = TRUE;
continue;
}
fprintf (lnkfile, "-a 0x%04x\n", options.iram_size);
/* if xram size specified */
- if (options.xram_size)
+ if (options.xram_size_set)
fprintf (lnkfile, "-v 0x%04x\n", options.xram_size);
/* if code size specified */