* src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
[fw/sdcc] / src / mcs51 / ralloc.h
index 0488a61c7b5a814faab11865ba9b260824fb1e1a..978ccfc572a6d571ed2f2fd40830490179098d93 100644 (file)
 #ifndef SDCCRALLOC_H
 #define SDCCRALLOC_H 1
 
-enum { R2_IDX = 0, R3_IDX , R4_IDX  ,
-       R5_IDX   ,R6_IDX   , R7_IDX  ,
-       R0_IDX   ,R1_IDX   , X8_IDX  ,
-       X9_IDX   ,X10_IDX  , X11_IDX ,
-       X12_IDX  ,CND_IDX };
+enum
+  {
+    R2_IDX = 0, R3_IDX, R4_IDX,
+    R5_IDX, R6_IDX, R7_IDX,
+    R0_IDX, R1_IDX, X8_IDX,
+    X9_IDX, X10_IDX, X11_IDX,
+    X12_IDX, CND_IDX,
+    DPL_IDX, DPH_IDX, B_IDX, A_IDX,
+    END_IDX
+  };
 
 
 #define REG_PTR 0x01
@@ -39,22 +44,22 @@ enum { R2_IDX = 0, R3_IDX , R4_IDX  ,
 #define REG_CND 0x04
 /* definition for the registers */
 typedef struct regs
-{
-    short type;          /* can have value 
-                           REG_GPR, REG_PTR or REG_CND */
-    short rIdx ;         /* index into register table */
-    short otype;        
-    char *name ;         /* name */
-    char *dname;         /* name when direct access needed */
-    char *base ;         /* base address */
-    short offset;        /* offset from the base */
-    unsigned isFree :1;  /* is currently unassigned  */    
-} regs;
+  {
+    short type;                        /* can have value 
+                                  REG_GPR, REG_PTR or REG_CND */
+    short rIdx;                        /* index into register table */
+    short otype;
+    char *name;                        /* name */
+    char *dname;               /* name when direct access needed */
+    char *base;                        /* base address */
+    short offset;              /* offset from the base */
+    unsigned isFree:1;         /* is currently unassigned  */
+  }
+regs;
 extern regs regs8051[];
 
-regs  *mcs51_regWithIdx (int);
+regs *mcs51_regWithIdx (int);
 
-/* in gen.c */
-extern unsigned fReturnSize;
+bitVect *mcs51_rUmaskForOp (operand * op);
 
 #endif