<tt><ref id="option--mnemonic-column" name="--mnemonic-column"></tt>.
+ <tag><tt/NEWLINEAFTERJMP/</tag>
+ This attribute is followed by a boolean value. When true, a newline is
+ inserted after each <tt/JMP/ instruction. The default is false.
+
+
+ <tag><tt/NEWLINEAFTERRTS/</tag>
+ This attribute is followed by a boolean value. When true, a newline is
+ inserted after each <tt/RTS/ instruction. The default is false.
+
+
<label id="OUTPUTNAME">
<tag><tt/OUTPUTNAME/</tag>
The attribute is followed by string value, which gives the name of the
unsigned char FormFeeds = 0; /* Add form feeds to the output? */
unsigned char UseHexOffs = 0; /* Use hexadecimal label offsets */
unsigned char PassCount = 2; /* How many passed do we do? */
+signed char NewlineAfterJMP = -1; /* Add a newline after a JMP insn? */
+signed char NewlineAfterRTS = -1; /* Add a newline after a RTS insn? */
long StartAddr = -1L; /* Start/load address of the program */
long InputOffs = -1L; /* Offset into input file */
long InputSize = -1L; /* Number of bytes to read from input */
/* */
/* */
/* */
-/* (C) 2000-2006 Ullrich von Bassewitz */
-/* Römerstrasse 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 */
extern unsigned char FormFeeds; /* Add form feeds to the output? */
extern unsigned char UseHexOffs; /* Use hexadecimal label offsets */
extern unsigned char PassCount; /* How many passed do we do? */
+extern signed char NewlineAfterJMP;/* Add a newline after a JMP insn? */
+extern signed char NewlineAfterRTS;/* Add a newline after a RTS insn? */
extern long StartAddr; /* Start/load address of the program */
extern long InputOffs; /* Offset into input file */
extern long InputSize; /* Number of bytes to read from input */
void OH_Rts (const OpcDesc* D)
{
OH_Implicit (D);
+ if (NewlineAfterRTS) {
+ LineFeed ();
+ }
SeparatorLine();
}
void OH_JmpAbsolute (const OpcDesc* D)
{
OH_Absolute (D);
+ if (NewlineAfterJMP) {
+ LineFeed ();
+ }
SeparatorLine ();
}
void OH_JmpAbsoluteIndirect (const OpcDesc* D)
{
OH_AbsoluteIndirect (D);
- SeparatorLine ();
+ if (NewlineAfterJMP) {
+ LineFeed ();
+ }
+ SeparatorLine ();
}
/* */
/* */
/* */
-/* (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 */
{
static const IdentTok LabelDefs[] = {
{ "COMMENTSTART", INFOTOK_COMMENTSTART },
- { "FILE", INFOTOK_FILE },
+ { "FILE", INFOTOK_FILE },
{ "IGNOREUNKNOWN", INFOTOK_IGNOREUNKNOWN },
};
{ "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 },
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 ();
/* */
/* */
/* */
-/* (C) 1998-2009, Ullrich von Bassewitz */
+/* (C) 1998-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* Print the disassembler version */
{
fprintf (stderr,
- "da65 V%s - (C) Copyright 2000-2009, Ullrich von Bassewitz\n",
- GetVersionAsString ());
+ "da65 V%s - (C) Copyright 2000-2011, Ullrich von Bassewitz\n",
+ GetVersionAsString ());
}
/* */
/* */
/* */
-/* (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 */
INFOTOK_INPUTSIZE,
INFOTOK_LABELBREAK,
INFOTOK_MNEMONIC_COLUMN,
+ INFOTOK_NL_AFTER_JMP,
+ INFOTOK_NL_AFTER_RTS,
INFOTOK_OUTPUTNAME,
INFOTOK_PAGELENGTH,
INFOTOK_STARTADDR,