Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 822:6e0536758465
prev790:a0c7d28bbb0c
next823:8a592668322f
author nkeynes
date Sat Aug 23 12:08:01 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Mask off SR correctly when writing to it - this turns out to be important
in some cases
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Wed Jul 30 00:11:32 2008 +0000
1.2 +++ b/src/sh4/sh4.c Sat Aug 23 12:08:01 2008 +0000
1.3 @@ -326,7 +326,7 @@
1.4 int newbank = (newval&SR_MDRB) == SR_MDRB;
1.5 if( oldbank != newbank )
1.6 sh4_switch_banks();
1.7 - sh4r.sr = newval;
1.8 + sh4r.sr = newval & SR_MASK;
1.9 sh4r.t = (newval&SR_T) ? 1 : 0;
1.10 sh4r.s = (newval&SR_S) ? 1 : 0;
1.11 sh4r.m = (newval&SR_M) ? 1 : 0;
.