Normalized code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,5 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown);
|
||||
|
||||
|
||||
/* End of asminc.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -178,6 +178,3 @@ attr_t GetLabelAttr (unsigned Addr)
|
||||
/* Return the attribute */
|
||||
return (AttrTab[Addr] & atLabelMask);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -114,7 +114,5 @@ attr_t GetLabelAttr (unsigned Addr);
|
||||
|
||||
|
||||
/* End of attrtab.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -219,6 +219,3 @@ void ResetCode (void)
|
||||
{
|
||||
PC = CodeStart;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -84,7 +84,5 @@ void ResetCode (void);
|
||||
|
||||
|
||||
/* End of code.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -85,6 +85,3 @@ const char* GetComment (unsigned Addr)
|
||||
/* Return the label if any */
|
||||
return CommentTab[Addr];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -57,7 +57,5 @@ const char* GetComment (unsigned Addr);
|
||||
|
||||
|
||||
/* End of comments.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -373,6 +373,3 @@ unsigned TextTable (void)
|
||||
/* Return the number of bytes output */
|
||||
return ByteCount;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,5 @@ unsigned TextTable (void);
|
||||
|
||||
|
||||
/* End of data.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -86,6 +86,3 @@ void Internal (const char* Format, ...)
|
||||
va_end (ap);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -63,6 +63,3 @@ void Internal (const char* Format, ...) attribute((noreturn, format(printf,1,2))
|
||||
/* End of error.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -112,6 +112,3 @@ extern unsigned BytesPerLine;
|
||||
/* End of global.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -662,6 +662,3 @@ void OH_JmpAbsoluteIndirect (const OpcDesc* D)
|
||||
}
|
||||
SeparatorLine ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -103,7 +103,5 @@ void OH_JmpAbsoluteIndirect (const OpcDesc* D);
|
||||
|
||||
|
||||
/* End of handler.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -837,9 +837,3 @@ void ReadInfoFile (void)
|
||||
InfoCloseInput ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,5 @@ void ReadInfoFile (void);
|
||||
|
||||
|
||||
/* End of infofile.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -410,6 +410,3 @@ void DefOutOfRangeLabels (void)
|
||||
|
||||
SeparatorLine ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -100,7 +100,5 @@ void DefOutOfRangeLabels (void);
|
||||
|
||||
|
||||
/* End of labels.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -633,6 +633,3 @@ int main (int argc, char* argv [])
|
||||
/* Done */
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -304,6 +304,3 @@ const OpcDesc OpcTable_6502[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "", 1, flIllegal, OH_Illegal, }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_6502[256];
|
||||
|
||||
|
||||
/* End of opc6502.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -306,7 +306,3 @@ const OpcDesc OpcTable_6502X[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "isc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65816[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "sbc", 4, flUseLabel, OH_AbsoluteLongX }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65816[256];
|
||||
|
||||
|
||||
/* End of opc65816.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65C02[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "bbs7", 3, flUseLabel, OH_BitBranch }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65C02[256];
|
||||
|
||||
|
||||
/* End of opc65c02.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -304,6 +304,3 @@ const OpcDesc OpcTable_65SC02[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "", 1, flIllegal, OH_Illegal, }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_65SC02[256];
|
||||
|
||||
|
||||
/* End of opc65sc02.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,5 @@ struct OpcDesc {
|
||||
|
||||
|
||||
/* End of opcdesc.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,5 @@ extern const OpcDesc OpcTable_HuC6280[256];
|
||||
|
||||
|
||||
/* End of opchuc6280.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -305,6 +305,3 @@ const OpcDesc OpcTable_M740[256] = {
|
||||
{ "inc", 3, flUseLabel|flAbsOverride, OH_AbsoluteX }, /* $fe */
|
||||
{ "clb", 2, flUseLabel, OH_ZeroPageBit }, /* $ff */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,5 @@ extern const OpcDesc OpcTable_M740[256];
|
||||
|
||||
|
||||
/* End of opcm740.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,3 @@ void SetOpcTable (cpu_t CPU)
|
||||
default: Error ("Unsupported CPU");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,5 @@ void SetOpcTable (cpu_t CPU);
|
||||
|
||||
|
||||
/* End of opctable.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -383,6 +383,3 @@ void OutputSettings (void)
|
||||
LineFeed ();
|
||||
LineFeed ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -111,8 +111,5 @@ void OutputSettings (void);
|
||||
|
||||
|
||||
/* End of output.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -533,7 +533,3 @@ void InfoCloseInput (void)
|
||||
InputFile = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -214,7 +214,5 @@ void InfoCloseInput (void);
|
||||
|
||||
|
||||
/* End of scanner.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -107,6 +107,3 @@ void AddAbsSegment (unsigned Start, unsigned End, const char* Name)
|
||||
/* Mark the addresses within the segment */
|
||||
MarkRange (Start, End, atSegment);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -52,6 +52,3 @@ void AddAbsSegment (unsigned Start, unsigned End, const char* Name);
|
||||
/* End of segment.h */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user