1.1 --- a/src/sh4/sh4core.h Sat Jan 21 11:38:36 2006 +0000
1.2 +++ b/src/sh4/sh4core.h Wed Feb 15 12:38:50 2006 +0000
1.5 - * $Id: sh4core.h,v 1.11 2006-01-21 11:38:36 nkeynes Exp $
1.6 + * $Id: sh4core.h,v 1.12 2006-02-15 12:38:50 nkeynes Exp $
1.8 * This file defines the internal functions exported/used by the SH4 core,
1.9 * except for disassembly functions defined in sh4dasm.h
1.11 #define FR(x) sh4r.fr[(sh4r.fpscr&FPSCR_FR)>>21][(x)^1]
1.12 #define DR(x) ((double *)(sh4r.fr[(sh4r.fpscr&FPSCR_FR)>>21]))[x]
1.13 #define XF(x) sh4r.fr[((~sh4r.fpscr)&FPSCR_FR)>>21][(x)^1]
1.15 +#define XDR(x) ((double *)(sh4r.fr[((~sh4r.fpscr)&FPSCR_FR)>>21]))[x]
1.16 +#define DRb(x,b) ((double *)(sh4r.fr[((b ? (~sh4r.fpscr) : sh4r.fpscr)&FPSCR_FR)>>21]))[x]
1.17 /* Exceptions (for use with sh4_raise_exception) */
1.19 #define EX_ILLEGAL_INSTRUCTION 0x180, 0x100