X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fasmcode.h;h=2db1ecbd469bd134cbbc8977bf0413e634764c63;hb=f7dfcbcc3daf8426770842b5e6ed3634e0d50c82;hp=69652c21a4550306080debf0a39e23d1ec1d438c;hpb=53dd513176425872128ef26031d00952ef7a0628;p=cc65 diff --git a/src/cc65/asmcode.h b/src/cc65/asmcode.h index 69652c21a..2db1ecbd4 100644 --- a/src/cc65/asmcode.h +++ b/src/cc65/asmcode.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 2000-2001 Ullrich von Bassewitz */ +/* Wacholderweg 14 */ +/* D-70597 Stuttgart */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -40,6 +40,9 @@ #include +/* common */ +#include "attrib.h" + /*****************************************************************************/ @@ -49,7 +52,7 @@ /* Marker for an assembler code position */ -typedef struct Line_* CodeMark; +typedef unsigned CodeMark; @@ -59,21 +62,17 @@ typedef struct Line_* CodeMark; -void AddCodeLine (const char* Format, ...); -/* Add a new line of code to the output */ - -void AddCodeHint (const char* Hint); -/* Add an optimizer hint */ - -void AddEmptyLine (void); -/* Add an empty line for formatting purposes */ - CodeMark GetCodePos (void); /* Get a marker pointing to the current output position */ void RemoveCode (CodeMark M); /* Remove all code after the given code marker */ +void MoveCode (CodeMark Start, CodeMark End, CodeMark Target); +/* Move the code between Start (inclusive) and End (exclusive) to + * (before) Target. + */ + void WriteOutput (FILE* F); /* Write the final output to a file */ @@ -84,3 +83,4 @@ void WriteOutput (FILE* F); +