New DefAddrSize variable
git-svn-id: svn://svn.cc65.org/cc65/trunk@2679 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
/* (C) 1998-2003 Ullrich von Bassewitz */
|
||||||
/* R<>merstrasse 52 */
|
/* R<>merstra<EFBFBD>e 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
@@ -33,7 +33,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "global.h"
|
/* common */
|
||||||
|
#include "addrsize.h"
|
||||||
|
|
||||||
|
/* ca65 */
|
||||||
|
#include "global.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -60,7 +64,8 @@ unsigned char SmartMode = 0; /* Smart mode */
|
|||||||
unsigned char DbgSyms = 0; /* Add debug symbols */
|
unsigned char DbgSyms = 0; /* Add debug symbols */
|
||||||
unsigned char Listing = 0; /* Create listing file */
|
unsigned char Listing = 0; /* Create listing file */
|
||||||
unsigned char LineCont = 0; /* Allow line continuation */
|
unsigned char LineCont = 0; /* Allow line continuation */
|
||||||
|
unsigned char DefAddrSize = ADDR_SIZE_ABS; /* Default address size */
|
||||||
|
|
||||||
/* Emulation features */
|
/* Emulation features */
|
||||||
unsigned char DollarIsPC = 0; /* Allow the $ symbol as current PC */
|
unsigned char DollarIsPC = 0; /* Allow the $ symbol as current PC */
|
||||||
unsigned char NoColonLabels = 0; /* Allow labels without a colon */
|
unsigned char NoColonLabels = 0; /* Allow labels without a colon */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
/* (C) 1998-2003 Ullrich von Bassewitz */
|
||||||
/* R<>merstrasse 52 */
|
/* R<>merstra<EFBFBD>e 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
@@ -61,6 +61,7 @@ extern unsigned char SmartMode; /* Smart mode */
|
|||||||
extern unsigned char DbgSyms; /* Add debug symbols */
|
extern unsigned char DbgSyms; /* Add debug symbols */
|
||||||
extern unsigned char Listing; /* Create listing file */
|
extern unsigned char Listing; /* Create listing file */
|
||||||
extern unsigned char LineCont; /* Allow line continuation */
|
extern unsigned char LineCont; /* Allow line continuation */
|
||||||
|
extern unsigned char DefAddrSize; /* Default address size */
|
||||||
|
|
||||||
/* Emulation features */
|
/* Emulation features */
|
||||||
extern unsigned char DollarIsPC; /* Allow the $ symbol as current PC */
|
extern unsigned char DollarIsPC; /* Allow the $ symbol as current PC */
|
||||||
|
|||||||
@@ -271,9 +271,9 @@ void SymImport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Map a default address size to a real value */
|
/* If no address size is given, use the default address size */
|
||||||
if (AddrSize == ADDR_SIZE_DEFAULT) {
|
if (AddrSize == ADDR_SIZE_DEFAULT) {
|
||||||
AddrSize = SymAddrSize (S);
|
AddrSize = DefAddrSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the symbol is marked as import or global, check the symbol flags,
|
/* If the symbol is marked as import or global, check the symbol flags,
|
||||||
|
|||||||
Reference in New Issue
Block a user