2000-05-28 13:40:48 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/* */
|
2004-03-21 16:15:04 +00:00
|
|
|
|
/* global.c */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
/* */
|
|
|
|
|
/* Global variables for the ca65 macroassembler */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
2004-03-21 16:15:04 +00:00
|
|
|
|
/* (C) 1998-2004 Ullrich von Bassewitz */
|
2003-11-23 21:38:54 +00:00
|
|
|
|
/* R<>merstra<72>e 52 */
|
2003-05-25 17:57:50 +00:00
|
|
|
|
/* D-70794 Filderstadt */
|
|
|
|
|
/* EMail: uz@cc65.org */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* This software is provided 'as-is', without any expressed or implied */
|
|
|
|
|
/* warranty. In no event will the authors be held liable for any damages */
|
|
|
|
|
/* arising from the use of this software. */
|
|
|
|
|
/* */
|
|
|
|
|
/* Permission is granted to anyone to use this software for any purpose, */
|
|
|
|
|
/* including commercial applications, and to alter it and redistribute it */
|
|
|
|
|
/* freely, subject to the following restrictions: */
|
|
|
|
|
/* */
|
|
|
|
|
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
|
|
|
/* claim that you wrote the original software. If you use this software */
|
|
|
|
|
/* in a product, an acknowledgment in the product documentation would be */
|
|
|
|
|
/* appreciated but is not required. */
|
|
|
|
|
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
|
|
|
/* be misrepresented as being the original software. */
|
|
|
|
|
/* 3. This notice may not be removed or altered from any source */
|
|
|
|
|
/* distribution. */
|
|
|
|
|
/* */
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-11-23 21:38:54 +00:00
|
|
|
|
/* common */
|
|
|
|
|
#include "addrsize.h"
|
|
|
|
|
|
|
|
|
|
/* ca65 */
|
2003-11-28 22:12:14 +00:00
|
|
|
|
#include "global.h"
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/* Data */
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* File names */
|
2002-02-14 10:05:51 +00:00
|
|
|
|
const char* InFile = 0; /* Name of input file */
|
|
|
|
|
const char* OutFile = 0; /* Name of output file */
|
|
|
|
|
const char* ListFile = 0; /* Name of listing file */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
/* Default extensions */
|
2002-02-14 10:05:51 +00:00
|
|
|
|
const char ObjExt[] = ".o";/* Default object extension */
|
|
|
|
|
const char ListExt[] = ".lst"; /* Default listing extension */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
2002-02-14 10:05:51 +00:00
|
|
|
|
char LocalStart = '@'; /* This char starts local symbols */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
2002-02-14 10:05:51 +00:00
|
|
|
|
unsigned char IgnoreCase = 0; /* Ignore case on identifiers? */
|
|
|
|
|
unsigned char AutoImport = 0; /* Mark unresolveds as import */
|
|
|
|
|
unsigned char SmartMode = 0; /* Smart mode */
|
|
|
|
|
unsigned char DbgSyms = 0; /* Add debug symbols */
|
|
|
|
|
unsigned char Listing = 0; /* Create listing file */
|
|
|
|
|
unsigned char LineCont = 0; /* Allow line continuation */
|
2003-11-28 22:12:14 +00:00
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
|
/* Emulation features */
|
2002-02-14 10:05:51 +00:00
|
|
|
|
unsigned char DollarIsPC = 0; /* Allow the $ symbol as current PC */
|
|
|
|
|
unsigned char NoColonLabels = 0; /* Allow labels without a colon */
|
|
|
|
|
unsigned char LooseStringTerm = 0; /* Allow ' as string terminator */
|
|
|
|
|
unsigned char LooseCharTerm = 0; /* Allow " for char constants */
|
|
|
|
|
unsigned char AtInIdents = 0; /* Allow '@' in identifiers */
|
|
|
|
|
unsigned char DollarInIdents = 0; /* Allow '$' in identifiers */
|
|
|
|
|
unsigned char LeadingDotInIdents = 0; /* Allow '.' to start an identifier */
|
|
|
|
|
unsigned char PCAssignment = 0; /* Allow "* = $XXX" or "$ = $XXX" */
|
2004-03-29 15:58:34 +00:00
|
|
|
|
unsigned char MissingCharTerm = 0; /* Allow lda #'a (no closing term) */
|
2004-04-20 12:49:36 +00:00
|
|
|
|
unsigned char UbiquitousIdents = 0; /* Allow ubiquitous identifiers */
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
2003-05-25 17:57:50 +00:00
|
|
|
|
/* Misc stuff */
|
2005-08-24 20:05:08 +00:00
|
|
|
|
const char Copyright[] = "(C) Copyright 1998-2005 Ullrich von Bassewitz";
|
2003-05-25 17:57:50 +00:00
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|