scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

proc.h (544B)


      1 
      2 enum args {
      3 	AREG_AF = AMAX,
      4 	AREG_A,
      5 	AREG_F,
      6 
      7 	AREG_BC,
      8 	AREG_B,
      9 	AREG_C,
     10 
     11 	AREG_HL,
     12 	AREG_H,
     13 	AREG_L,
     14 
     15 	AREG_DE,
     16 	AREG_D,
     17 	AREG_E,
     18 
     19 	AREG_IX,
     20 	AREG_IXL,
     21 	AREG_IXH,
     22 
     23 	AREG_IY,
     24 	AREG_IYL,
     25 	AREG_IYH,
     26 
     27 	AREG_R,
     28 	AREG_I,
     29 	AREG_AF_,
     30 
     31 	AREG_RCLASS,  /* register class for B, C, D, E, H, L and A */
     32 	AREG_PCLASS,  /* register class for B, C, D, E, IXH, IXL and A */
     33 	AREG_QCLASS,  /* register class for B, C, D, E, IYH, IYL and A */
     34 
     35 	AINDER_HL,    /* (HL) */
     36 };
     37 
     38 extern int rclass(int reg);
     39 extern int pclass(int reg);
     40 extern int qclass(int reg);