Normalized code.

This commit is contained in:
Oliver Schmidt
2014-03-04 01:11:19 +01:00
parent 3e156bdd67
commit 4185caf855
502 changed files with 96 additions and 1660 deletions

View File

@@ -233,6 +233,3 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown)
/* Close the include file ignoring errors (we were just reading). */
(void) fclose (F);
}

View File

@@ -50,7 +50,5 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown);
/* End of asminc.h */
#endif

View File

@@ -178,6 +178,3 @@ attr_t GetLabelAttr (unsigned Addr)
/* Return the attribute */
return (AttrTab[Addr] & atLabelMask);
}

View File

@@ -114,7 +114,5 @@ attr_t GetLabelAttr (unsigned Addr);
/* End of attrtab.h */
#endif

View File

@@ -219,6 +219,3 @@ void ResetCode (void)
{
PC = CodeStart;
}

View File

@@ -84,7 +84,5 @@ void ResetCode (void);
/* End of code.h */
#endif

View File

@@ -85,6 +85,3 @@ const char* GetComment (unsigned Addr)
/* Return the label if any */
return CommentTab[Addr];
}

View File

@@ -57,7 +57,5 @@ const char* GetComment (unsigned Addr);
/* End of comments.h */
#endif

View File

@@ -373,6 +373,3 @@ unsigned TextTable (void)
/* Return the number of bytes output */
return ByteCount;
}

View File

@@ -68,7 +68,5 @@ unsigned TextTable (void);
/* End of data.h */
#endif

View File

@@ -86,6 +86,3 @@ void Internal (const char* Format, ...)
va_end (ap);
exit (EXIT_FAILURE);
}

View File

@@ -63,6 +63,3 @@ void Internal (const char* Format, ...) attribute((noreturn, format(printf,1,2))
/* End of error.h */
#endif

View File

@@ -77,6 +77,3 @@ unsigned ACol = 17; /* Argument column */
unsigned CCol = 49; /* Comment column */
unsigned TCol = 81; /* Text bytes column */
unsigned BytesPerLine = 8; /* Max. number of data bytes per line */

View File

@@ -112,6 +112,3 @@ extern unsigned BytesPerLine;
/* End of global.h */
#endif

View File

@@ -662,6 +662,3 @@ void OH_JmpAbsoluteIndirect (const OpcDesc* D)
}
SeparatorLine ();
}

View File

@@ -103,7 +103,5 @@ void OH_JmpAbsoluteIndirect (const OpcDesc* D);
/* End of handler.h */
#endif

View File

@@ -837,9 +837,3 @@ void ReadInfoFile (void)
InfoCloseInput ();
}
}

View File

@@ -50,7 +50,5 @@ void ReadInfoFile (void);
/* End of infofile.h */
#endif

View File

@@ -410,6 +410,3 @@ void DefOutOfRangeLabels (void)
SeparatorLine ();
}

View File

@@ -100,7 +100,5 @@ void DefOutOfRangeLabels (void);
/* End of labels.h */
#endif

View File

@@ -633,6 +633,3 @@ int main (int argc, char* argv [])
/* Done */
return EXIT_SUCCESS;
}

View File

@@ -304,6 +304,3 @@ const OpcDesc OpcTable_6502[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "", 1, flIllegal, OH_Illegal, }, /* $ff */
};

View File

@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_6502[256];
/* End of opc6502.h */
#endif

View File

@@ -306,7 +306,3 @@ const OpcDesc OpcTable_6502X[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "isc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $ff */
};

View File

@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65816[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "sbc", 4, flUseLabel, OH_AbsoluteLongX }, /* $ff */
};

View File

@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65816[256];
/* End of opc65816.h */
#endif

View File

@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65C02[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "bbs7", 3, flUseLabel, OH_BitBranch }, /* $ff */
};

View File

@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65C02[256];
/* End of opc65c02.h */
#endif

View File

@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65SC02[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "", 1, flIllegal, OH_Illegal, }, /* $ff */
};

View File

@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65SC02[256];
/* End of opc65sc02.h */
#endif

View File

@@ -73,7 +73,5 @@ struct OpcDesc {
/* End of opcdesc.h */
#endif

View File

@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_HuC6280[256];
/* End of opchuc6280.h */
#endif

View File

@@ -305,6 +305,3 @@ const OpcDesc OpcTable_M740[256] = {
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
{ "clb", 2, flUseLabel, OH_ZeroPageBit }, /* $ff */
};

View File

@@ -55,7 +55,5 @@ extern const OpcDesc OpcTable_M740[256];
/* End of opcm740.h */
#endif

View File

@@ -76,7 +76,3 @@ void SetOpcTable (cpu_t CPU)
default: Error ("Unsupported CPU");
}
}

View File

@@ -69,7 +69,5 @@ void SetOpcTable (cpu_t CPU);
/* End of opctable.h */
#endif

View File

@@ -383,6 +383,3 @@ void OutputSettings (void)
LineFeed ();
LineFeed ();
}

View File

@@ -111,8 +111,5 @@ void OutputSettings (void);
/* End of output.h */
#endif

View File

@@ -533,7 +533,3 @@ void InfoCloseInput (void)
InputFile = 0;
}
}

View File

@@ -214,7 +214,5 @@ void InfoCloseInput (void);
/* End of scanner.h */
#endif

View File

@@ -107,6 +107,3 @@ void AddAbsSegment (unsigned Start, unsigned End, const char* Name)
/* Mark the addresses within the segment */
MarkRange (Start, End, atSegment);
}

View File

@@ -52,6 +52,3 @@ void AddAbsSegment (unsigned Start, unsigned End, const char* Name);
/* End of segment.h */
#endif