/*
 * This software is part of the SBCL system. See the README file for
 * more information.
 *
 * This software is derived from the CMU CL system, which was
 * written at Carnegie Mellon University and released into the
 * public domain. The software is in the public domain and is
 * provided with absolutely no warranty. See the COPYING and CREDITS
 * files for more information.
 */


#define NREGS (32)

#ifdef __ASSEMBLER__
#    define REG(num) x##num
#else
#    define REG(num) (num)
#endif

#define reg_NL0          REG(0)
#define reg_NL1          REG(1)
#define reg_NL2          REG(2)
#define reg_NL3          REG(3)
#define reg_NL4          REG(4)
#define reg_NL5          REG(5)
#define reg_NL6          REG(6)
#define reg_NL7          REG(7)
#define reg_NL8          REG(8)
#define reg_NL9          REG(9)

#define reg_R0         REG(10)
#define reg_R1         REG(11)
#define reg_R2         REG(12)
#define reg_R3         REG(13)
#define reg_R4         REG(14)
#define reg_R5         REG(15)
#define reg_R6         REG(16)
#define reg_R7         REG(17)

#ifdef LISP_FEATURE_DARWIN
#define reg_R8         REG(20)
#else
#define reg_R8         REG(18)
#define reg_R10         REG(20)
#endif

#define reg_R9         REG(19)

#ifdef LISP_FEATURE_SB_THREAD
#define reg_THREAD      REG(21)
#else
#define reg_R11         REG(21)
#endif
#define reg_LEXENV      REG(22)

#define reg_NARGS       REG(23)
#define reg_NFP         REG(24)
#define reg_OCFP        REG(25)
#define reg_CFP         REG(26)
#define reg_CSP         REG(27)
#define reg_TMP         REG(28)
#define reg_wTMP        w28
#define reg_NULL        REG(29)
#define reg_wNULL       w29
#define reg_LR          REG(30)
#define reg_NSP         REG(31)
