Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 95:7c0dac698ea2
prev84:b993a8d8fbf3
next157:fbe03268ad8a
author nkeynes
date Wed Feb 15 12:38:50 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix DR FMOV functions to allow reference to the back bank
file annotate diff log raw
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.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
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.10 @@ -159,7 +159,8 @@
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.14 -
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.18
1.19 #define EX_ILLEGAL_INSTRUCTION 0x180, 0x100
.