]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeinfo.h
Working on the backend
[cc65] / src / cc65 / codeinfo.h
index 85b726dc0a5773b8beb9d833122cf2b3b5566c1b..edd5929d8b8fc8e6c58fd752f01ea109f4212e92 100644 (file)
@@ -65,8 +65,11 @@ struct CodeSeg;
 #define REG_PTR1_LO    0x40U
 #define REG_PTR1_HI    0x80U
 #define        REG_AX          (REG_A | REG_X)
+#define REG_EAX         (REG_A | REG_X | REG_SREG_LO | REG_SREG_HI)
 #define REG_XY         (REG_X | REG_Y)
 #define REG_AXY                (REG_A | REG_X | REG_Y)
+#define REG_SREG        (REG_SREG_LO | REG_SREG_HI)
+#define REG_PTR1        (REG_PTR1_LO | REG_PTR1_HI)
 
 
 
@@ -77,11 +80,14 @@ struct CodeSeg;
 
 
 void GetFuncInfo (const char* Name, unsigned char* Use, unsigned char* Chg);
-/* For the given function, lookup register information and combine it with
- * the information already in place. If the function is unknown, assume it
- * will use all registers and load all registers.
+/* For the given function, lookup register information and store it into
+ * the given variables. If the function is unknown, assume it will use and
+ * load all registers.
  */
 
+int IsZPName (const char* Name);
+/* Return true if the given name is a zero page symbol */
+
 unsigned char GetRegInfo (struct CodeSeg* S, unsigned Index);
 /* Determine register usage information for the instructions starting at the
  * given index.