]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeent.h
Working on the backend
[cc65] / src / cc65 / codeent.h
index fbcc04e5ae9b0fb2b8eda2785405169855887285..ab0790989a656c3672ef913728b5c2017106baf4 100644 (file)
@@ -69,6 +69,7 @@ struct CodeEntry {
     char*                      Arg;            /* Argument as string */
     unsigned           Num;            /* Numeric argument */
     unsigned short     Flags;          /* Flags */
+    unsigned char      Info;           /* Additional code info */
     unsigned char      Use;            /* Registers used */
     unsigned char      Chg;            /* Registers changed/destroyed */
     CodeLabel*         JumpTo;         /* Jump label */
@@ -92,6 +93,21 @@ void FreeCodeEntry (CodeEntry* E);
 int CodeEntryHasLabel (const CodeEntry* E);
 /* Check if the given code entry has labels attached */
 
+int CodeEntryHasMark (const CodeEntry* E);
+/* Return true if the given code entry has the CEF_USERMARK flag set */
+
+void CodeEntrySetMark (CodeEntry* E);
+/* Set the CEF_USERMARK flag for the given entry */
+
+void CodeEntryResetMark (CodeEntry* E);
+/* Reset the CEF_USERMARK flag for the given entry */
+
+CodeLabel* GetCodeLabel (CodeEntry* E, unsigned Index);
+/* Get a label from this code entry */
+
+void MoveCodeLabel (CodeLabel* L, CodeEntry* E);
+/* Move the code label L from it's former owner to the code entry E. */
+
 void OutputCodeEntry (const CodeEntry* E, FILE* F);
 /* Output the code entry to a file */