Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 95:7c0dac698ea2
prev92:108450d84ce8
next102:844a3f2a76ff
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.c Sun Feb 05 04:02:57 2006 +0000
1.2 +++ b/src/sh4/sh4core.c Wed Feb 15 12:38:50 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.c,v 1.19 2006-02-05 04:02:57 nkeynes Exp $
1.6 + * $Id: sh4core.c,v 1.20 2006-02-15 12:38:50 nkeynes Exp $
1.7 *
1.8 * SH4 emulation core, and parent module for all the SH4 peripheral
1.9 * modules.
1.10 @@ -320,8 +320,8 @@
1.11 #define FRM(ir) FR(FRMn(ir))
1.12 #define FRNi(ir) (*((uint32_t *)&FR(FRNn(ir))))
1.13 #define FRMi(ir) (*((uint32_t *)&FR(FRMn(ir))))
1.14 -#define DRN(ir) DR(DRNn(ir))
1.15 -#define DRM(ir) DR(DRMn(ir))
1.16 +#define DRN(ir) DRb(DRNn(ir), ir&0x0100)
1.17 +#define DRM(ir) DRb(DRMn(ir),ir&0x0010)
1.18 #define DRNi(ir) (*((uint64_t *)&DR(FRNn(ir))))
1.19 #define DRMi(ir) (*((uint64_t *)&DR(FRMn(ir))))
1.20 #define FPULf *((float *)&sh4r.fpul)
.