Added two new global options, NewlineAfterJMP and NewlineAfterRTS.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4963 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000-2007 Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* (C) 2000-2011, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -85,7 +85,7 @@ static void AsmIncSection (void)
|
||||
{
|
||||
static const IdentTok LabelDefs[] = {
|
||||
{ "COMMENTSTART", INFOTOK_COMMENTSTART },
|
||||
{ "FILE", INFOTOK_FILE },
|
||||
{ "FILE", INFOTOK_FILE },
|
||||
{ "IGNOREUNKNOWN", INFOTOK_IGNOREUNKNOWN },
|
||||
};
|
||||
|
||||
@@ -190,6 +190,8 @@ static void GlobalSection (void)
|
||||
{ "LABELBREAK", INFOTOK_LABELBREAK },
|
||||
{ "MNEMONICCOL", INFOTOK_MNEMONIC_COLUMN },
|
||||
{ "MNEMONICCOLUMN", INFOTOK_MNEMONIC_COLUMN },
|
||||
{ "NEWLINEAFTERJMP", INFOTOK_NL_AFTER_JMP },
|
||||
{ "NEWLINEAFTERRTS", INFOTOK_NL_AFTER_RTS },
|
||||
{ "OUTPUTNAME", INFOTOK_OUTPUTNAME },
|
||||
{ "PAGELENGTH", INFOTOK_PAGELENGTH },
|
||||
{ "STARTADDR", INFOTOK_STARTADDR },
|
||||
@@ -298,6 +300,26 @@ static void GlobalSection (void)
|
||||
InfoNextTok ();
|
||||
break;
|
||||
|
||||
case INFOTOK_NL_AFTER_JMP:
|
||||
InfoNextTok ();
|
||||
if (NewlineAfterJMP != -1) {
|
||||
InfoError ("NLAfterJMP already specified");
|
||||
}
|
||||
InfoBoolToken ();
|
||||
NewlineAfterJMP = (InfoTok != INFOTOK_FALSE);
|
||||
InfoNextTok ();
|
||||
break;
|
||||
|
||||
case INFOTOK_NL_AFTER_RTS:
|
||||
InfoNextTok ();
|
||||
InfoBoolToken ();
|
||||
if (NewlineAfterRTS != -1) {
|
||||
InfoError ("NLAfterRTS already specified");
|
||||
}
|
||||
NewlineAfterRTS = (InfoTok != INFOTOK_FALSE);
|
||||
InfoNextTok ();
|
||||
break;
|
||||
|
||||
case INFOTOK_OUTPUTNAME:
|
||||
InfoNextTok ();
|
||||
InfoAssureStr ();
|
||||
|
||||
Reference in New Issue
Block a user